Documentation ¶
Index ¶
- Constants
- func GetBigVclock(prop map[string]int) int
- func GetOldVclock(prop map[string]int) int
- func GetParams(d map[string]int, key string, default_value int) int
- func GetSmallVclock(prop map[string]int) int
- func GetYoungVclock(prop map[string]int) int
- type DVV
- func (va DVV) Descends(vb DVV) bool
- func (va DVV) Dominates(vb DVV) bool
- func (v *DVV) GetCounter(id string) uint32
- func (v *DVV) GetDot(id string) (*Dot, error)
- func (v *DVV) GetTimestamp(id string) (uint32, error)
- func (v *DVV) Increment(node string)
- func (d DVV) Len() int
- func (d DVV) Less(i, j int) bool
- func (v *DVV) Merge(vclocks []DVV)
- func (v *DVV) Prune(now uint32, props map[string]int)
- func (d DVV) Swap(i, j int)
- type Dot
- type GCounter
- func (counter GCounter) AllNode(counters []GCounter) []string
- func (counter_a GCounter) Equal(counter_b GCounter) bool
- func (counter *GCounter) Increment(node string)
- func (counter *GCounter) IncrementBy(node string, amount uint)
- func (counter_a *GCounter) Merge(counters []GCounter)
- func (counter GCounter) Value() uint
- type GSet
- type LWWReg
- type ORSet
- type Token
Constants ¶
View Source
const DEFAULT_BIG_VCLOCK = 50
View Source
const DEFAULT_OLD_VCLOCK = 86400
View Source
const DEFAULT_SMALL_VCLOCK = 50
View Source
const DEFAULT_YOUNG_VCLOCK = 20
Variables ¶
This section is empty.
Functions ¶
func GetBigVclock ¶
func GetOldVclock ¶
func GetSmallVclock ¶
func GetYoungVclock ¶
Types ¶
type DVV ¶
type DVV struct {
// contains filtered or unexported fields
}
Individual event with timestamp
func (DVV) Dominates ¶
true if vclock va strictly dominates vclock vb. Note: ignores timestamps In riak it is possible to have vclocks that are identical except for timestamps. when two vclocks descend each other, but are not equal, they are concurrent. See source comment for more details.
func (*DVV) GetCounter ¶
Get the counter value in a DVV set from node
func (*DVV) GetTimestamp ¶
Get the timestamp value in a DVV set from node
func (*DVV) Merge ¶
Combine all vclocks in the input list in to their least possible common descendant.
type Dot ¶
type Dot struct {
// contains filtered or unexported fields
}
Timestamp of individual event
type GCounter ¶
func (*GCounter) IncrementBy ¶
perform the increment
type LWWReg ¶
type ORSet ¶
func (ORSet) RemovedValue ¶
Return values which has removed
Click to show internal directories.
Click to hide internal directories.