Versions in this module Expand all Collapse all v0 v0.8.0 Nov 20, 2022 Changes in this version + var ErrClockNotExist = errors.New("clock doesn't exist") + type MemClock struct + func NewMemClock() *MemClock + func NewMemClockWithTime(time uint64) *MemClock + func (mc *MemClock) Increment() (Time, error) + func (mc *MemClock) Time() Time + func (mc *MemClock) Witness(v Time) error + type PersistedClock struct + func LoadPersistedClock(root billy.Filesystem, filePath string) (*PersistedClock, error) + func NewPersistedClock(root billy.Filesystem, filePath string) (*PersistedClock, error) + func (pc *PersistedClock) Increment() (Time, error) + func (pc *PersistedClock) Witness(time Time) error + func (pc *PersistedClock) Write() error v0.7.2 Mar 21, 2021 Changes in this version + type Clock struct + func NewClock() Clock + func NewClockWithTime(time uint64) Clock + func (l *Clock) Increment() Time + func (l *Clock) Time() Time + func (l *Clock) Witness(v Time) + type Persisted struct + func LoadPersisted(filePath string) (*Persisted, error) + func NewPersisted(filePath string) (*Persisted, error) + func (c *Persisted) Increment() (Time, error) + func (c *Persisted) Witness(time Time) error + func (c *Persisted) Write() error + type Time uint64