capnp

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2019 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const Change_TypeID = 0x9592300df48789af

Change_TypeID is the unique identifier for the type Change.

View Source
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

type Change struct{ capnp.Struct }

Change describes a single change

func NewChange

func NewChange(s *capnp.Segment) (Change, error)

func NewRootChange

func NewRootChange(s *capnp.Segment) (Change, error)

func ReadRootChange

func ReadRootChange(msg *capnp.Message) (Change, error)

func (Change) Curr

func (s Change) Curr() (capnp2.Node, error)

func (Change) HasCurr

func (s Change) HasCurr() bool

func (Change) HasHead

func (s Change) HasHead() bool

func (Change) HasMovedTo added in v0.2.0

func (s Change) HasMovedTo() bool

func (Change) HasNext

func (s Change) HasNext() bool

func (Change) HasWasPreviouslyAt added in v0.2.0

func (s Change) HasWasPreviouslyAt() bool

func (Change) Head

func (s Change) Head() (capnp2.Node, error)

func (Change) Mask

func (s Change) Mask() uint64

func (Change) MovedTo added in v0.2.0

func (s Change) MovedTo() (string, error)

func (Change) MovedToBytes added in v0.2.0

func (s Change) MovedToBytes() ([]byte, error)

func (Change) NewCurr

func (s Change) NewCurr() (capnp2.Node, error)

NewCurr sets the curr field to a newly allocated capnp2.Node struct, preferring placement in s's segment.

func (Change) NewHead

func (s Change) NewHead() (capnp2.Node, error)

NewHead sets the head field to a newly allocated capnp2.Node struct, preferring placement in s's segment.

func (Change) NewNext

func (s Change) NewNext() (capnp2.Node, error)

NewNext sets the next field to a newly allocated capnp2.Node struct, preferring placement in s's segment.

func (Change) Next

func (s Change) Next() (capnp2.Node, error)

func (Change) SetCurr

func (s Change) SetCurr(v capnp2.Node) error

func (Change) SetHead

func (s Change) SetHead(v capnp2.Node) error

func (Change) SetMask

func (s Change) SetMask(v uint64)

func (Change) SetMovedTo added in v0.2.0

func (s Change) SetMovedTo(v string) error

func (Change) SetNext

func (s Change) SetNext(v capnp2.Node) error

func (Change) SetWasPreviouslyAt added in v0.2.0

func (s Change) SetWasPreviouslyAt(v string) error

func (Change) String

func (s Change) String() string

func (Change) WasPreviouslyAt added in v0.2.0

func (s Change) WasPreviouslyAt() (string, error)

func (Change) WasPreviouslyAtBytes added in v0.2.0

func (s Change) WasPreviouslyAtBytes() ([]byte, error)

type Change_List

type Change_List struct{ capnp.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) Set

func (s Change_List) Set(i int, v Change) error

func (Change_List) String

func (s Change_List) String() string

type Change_Promise

type Change_Promise struct{ *capnp.Pipeline }

Change_Promise is a wrapper for a Change promised by a client call.

func (Change_Promise) Curr

func (Change_Promise) Head

func (Change_Promise) Next

func (Change_Promise) Struct

func (p Change_Promise) Struct() (Change, error)

type Patch

type Patch struct{ capnp.Struct }

Patch contains a single change

func NewPatch

func NewPatch(s *capnp.Segment) (Patch, error)

func NewRootPatch

func NewRootPatch(s *capnp.Segment) (Patch, error)

func ReadRootPatch

func ReadRootPatch(msg *capnp.Message) (Patch, error)

func (Patch) Changes

func (s Patch) Changes() (Change_List, error)

func (Patch) CurrIndex

func (s Patch) CurrIndex() int64

func (Patch) FromIndex

func (s Patch) FromIndex() int64

func (Patch) HasChanges

func (s Patch) HasChanges() bool

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 (s Patch) SetCurrIndex(v int64)

func (Patch) SetFromIndex

func (s Patch) SetFromIndex(v int64)

func (Patch) String

func (s Patch) String() string

type Patch_List

type Patch_List struct{ capnp.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) Set

func (s Patch_List) Set(i int, v Patch) error

func (Patch_List) String

func (s Patch_List) String() string

type Patch_Promise

type Patch_Promise struct{ *capnp.Pipeline }

Patch_Promise is a wrapper for a Patch promised by a client call.

func (Patch_Promise) Struct

func (p Patch_Promise) Struct() (Patch, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL