xotl.crdt.counter – The Counter CRTDs

class xotl.crdt.counter.GCounter(*, process: xotl.crdt.base.Process)[source]

A increment-only counter.

User API

incr()[source]

Increases the counter by one.

class xotl.crdt.counter.PNCounter(*, process: xotl.crdt.base.Process)[source]

A counter that allows increments and decrements.

User API

incr()[source]

Increase the counter by one.

decr()[source]

Decreases the counter by one.