Documentation ¶
Overview ¶
mae.earth/pkg/vclock/clock.go mae 12016 Package vclock implements vector clocks
Index ¶
- Constants
- Variables
- func Fuzz(data []byte) int
- type ByUser
- type Clock
- func (c Clock) Equal(other Clock) bool
- func (c Clock) Format(delimiter rune) string
- func (c Clock) HasTag(tag string) bool
- func (c Clock) HasTags(tags ...string) bool
- func (c Clock) Merge(other Clock) Clock
- func (c Clock) RelationshipIs(other Clock, r Relationship) bool
- func (c Clock) RelationshipTo(other Clock) Relationship
- func (c Clock) String() string
- func (c Clock) Tag(tag string, def int) int
- func (c Clock) Update(tag Tag) Clock
- type Relationship
- type Tag
Constants ¶
View Source
const ( Delimiter = rune(';') Unknown = Relationship(0) Ancestor = Relationship(1) Descendant = Relationship(2) Sibling = Relationship(3) )
Variables ¶
View Source
var EmptyClock = []Tag{}
EmptyClock
Functions ¶
Types ¶
type Clock ¶
type Clock []Tag
Clock
func (Clock) RelationshipIs ¶
func (c Clock) RelationshipIs(other Clock, r Relationship) bool
RelationshipIs
func (Clock) RelationshipTo ¶
func (c Clock) RelationshipTo(other Clock) Relationship
RelationshipTo
Click to show internal directories.
Click to hide internal directories.