Documentation ¶
Index ¶
- Constants
- type Change
- func (s Change) Curr() (capnp2.Node, error)
- func (s Change) HasCurr() bool
- func (s Change) HasHead() bool
- func (s Change) HasMovedTo() bool
- func (s Change) HasNext() bool
- func (s Change) HasWasPreviouslyAt() bool
- func (s Change) Head() (capnp2.Node, error)
- func (s Change) Mask() uint64
- func (s Change) MovedTo() (string, error)
- func (s Change) MovedToBytes() ([]byte, error)
- func (s Change) NewCurr() (capnp2.Node, error)
- func (s Change) NewHead() (capnp2.Node, error)
- func (s Change) NewNext() (capnp2.Node, error)
- func (s Change) Next() (capnp2.Node, error)
- func (s Change) SetCurr(v capnp2.Node) error
- func (s Change) SetHead(v capnp2.Node) error
- func (s Change) SetMask(v uint64)
- func (s Change) SetMovedTo(v string) error
- func (s Change) SetNext(v capnp2.Node) error
- func (s Change) SetWasPreviouslyAt(v string) error
- func (s Change) String() string
- func (s Change) WasPreviouslyAt() (string, error)
- func (s Change) WasPreviouslyAtBytes() ([]byte, error)
- type Change_List
- type Change_Promise
- type Patch
- func (s Patch) Changes() (Change_List, error)
- func (s Patch) CurrIndex() int64
- func (s Patch) FromIndex() int64
- func (s Patch) HasChanges() bool
- func (s Patch) NewChanges(n int32) (Change_List, error)
- func (s Patch) SetChanges(v Change_List) error
- func (s Patch) SetCurrIndex(v int64)
- func (s Patch) SetFromIndex(v int64)
- func (s Patch) String() string
- type Patch_List
- type Patch_Promise
Constants ¶
const Change_TypeID = 0x9592300df48789af
Change_TypeID is the unique identifier for the type Change.
const Patch_TypeID = 0x927c7336e3054805
Patch_TypeID is the unique identifier for the type Patch.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
Change describes a single change
func (Change) HasMovedTo ¶ added in v0.2.0
func (Change) HasWasPreviouslyAt ¶ added in v0.2.0
func (Change) MovedToBytes ¶ added in v0.2.0
func (Change) NewCurr ¶
NewCurr sets the curr field to a newly allocated capnp2.Node struct, preferring placement in s's segment.
func (Change) NewHead ¶
NewHead sets the head field to a newly allocated capnp2.Node struct, preferring placement in s's segment.
func (Change) NewNext ¶
NewNext sets the next field to a newly allocated capnp2.Node struct, preferring placement in s's segment.
func (Change) SetMovedTo ¶ added in v0.2.0
func (Change) SetWasPreviouslyAt ¶ added in v0.2.0
func (Change) WasPreviouslyAt ¶ added in v0.2.0
func (Change) WasPreviouslyAtBytes ¶ added in v0.2.0
type Change_List ¶
Change_List is a list of Change.
func NewChange_List ¶
func NewChange_List(s *capnp.Segment, sz int32) (Change_List, error)
NewChange creates a new list of Change.
func (Change_List) At ¶
func (s Change_List) At(i int) Change
func (Change_List) String ¶
func (s Change_List) String() string
type Change_Promise ¶
Change_Promise is a wrapper for a Change promised by a client call.
func (Change_Promise) Curr ¶
func (p Change_Promise) Curr() capnp2.Node_Promise
func (Change_Promise) Head ¶
func (p Change_Promise) Head() capnp2.Node_Promise
func (Change_Promise) Next ¶
func (p Change_Promise) Next() capnp2.Node_Promise
func (Change_Promise) Struct ¶
func (p Change_Promise) Struct() (Change, error)
type Patch ¶
Patch contains a single change
func (Patch) Changes ¶
func (s Patch) Changes() (Change_List, error)
func (Patch) HasChanges ¶
func (Patch) NewChanges ¶
func (s Patch) NewChanges(n int32) (Change_List, error)
NewChanges sets the changes field to a newly allocated Change_List, preferring placement in s's segment.
func (Patch) SetChanges ¶
func (s Patch) SetChanges(v Change_List) error
func (Patch) SetCurrIndex ¶
func (Patch) SetFromIndex ¶
type Patch_List ¶
Patch_List is a list of Patch.
func NewPatch_List ¶
func NewPatch_List(s *capnp.Segment, sz int32) (Patch_List, error)
NewPatch creates a new list of Patch.
func (Patch_List) At ¶
func (s Patch_List) At(i int) Patch
func (Patch_List) String ¶
func (s Patch_List) String() string
type Patch_Promise ¶
Patch_Promise is a wrapper for a Patch promised by a client call.
func (Patch_Promise) Struct ¶
func (p Patch_Promise) Struct() (Patch, error)