Documentation ¶
Overview ¶
Package cregister defines CRegister, a simple last-one-wins CRDT value.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRegister ¶
type CRegister struct { AgentId uint32 Vec *common.VersionVector Time time.Time Val interface{} }
CRegister is a CRDT register (last-one-wins). Fields are exported to support CRegister.Encode.
func (*CRegister) ApplyClientPatch ¶
func (r *CRegister) ApplyClientPatch(agentId uint32, vec *common.VersionVector, t time.Time, patch string) (string, error)
ApplyClientPatch implements CValue.ApplyClientPatch.
func (*CRegister) ApplyServerPatch ¶
ApplyServerPatch implements CValue.ApplyServerPatch.
Click to show internal directories.
Click to hide internal directories.