Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMd5Hash ¶
func NewMd5Hash() ports.ConsistentHash
func NewSimpleCache ¶
Types ¶
type LamportClock ¶
LamportClock is a partial-order clock implementing ports.ILamportClock
func NewLamportClock ¶
func NewLamportClock() *LamportClock
func (*LamportClock) Tick ¶
func (l *LamportClock) Tick() uint64
func (*LamportClock) Time ¶
func (l *LamportClock) Time() uint64
func (*LamportClock) Witness ¶
func (l *LamportClock) Witness(t uint64) bool
type SimpleCache ¶
type SimpleCache struct {
// contains filtered or unexported fields
}
SimpleCache implements ports.Storage
func (*SimpleCache) Del ¶
func (c *SimpleCache) Del(key string) error
func (*SimpleCache) Put ¶
func (c *SimpleCache) Put(key, value string) error
Click to show internal directories.
Click to hide internal directories.