Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEL_PROP_KEY = "DEL" MOV_PROP_KEY = "MOV" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { BlockID common.BlockID Version Version Props Props Text *text.Text ParentBlockID *common.BlockID Point point.Point IsDeleted bool }
func (*Block) Apply ¶
func (block *Block) Apply(ctrb Contribution) error
func (Block) MarshalJSON ¶
func (*Block) UnmarshalJSON ¶
type BlockPoint ¶
func (BlockPoint) MarshalJSON ¶
func (bp BlockPoint) MarshalJSON() ([]byte, error)
func (*BlockPoint) UnmarshalJSON ¶
func (bp *BlockPoint) UnmarshalJSON(data []byte) error
type Contribution ¶
type Contribution struct { BlockID common.BlockID `json:"blockID"` Nonce ReplicaNonce `json:"nonce"` Stamp common.Stamp `json:"stamp"` Operations Operations `json:"ops"` }
type Operations ¶
type Prop ¶
func (Prop) MarshalJSON ¶
assuming LEAF flagged nested is not used
func (*Prop) UnmarshalJSON ¶
assuming LEAF flagged nested is not used
type PropDelta ¶
func (PropDelta) MarshalJSON ¶
assuming LEAF flagged nested is not used
func (*PropDelta) UnmarshalJSON ¶
assuming LEAF flagged nested is not used
type Props ¶
func UpdateProps ¶
func UpdateProps(props Props, delta PropsDelta, stamp common.Stamp) Props
assuming LEAF flagged nested is not used and delta is not nil
type PropsDelta ¶
type ReplicaNonce ¶
type Version ¶
type Version map[common.ReplicaID]ReplicaNonce
func (Version) IsNewerOrEqualThan ¶
func (Version) IsNewerThanExceptFor ¶
Click to show internal directories.
Click to hide internal directories.