Documentation
¶
Index ¶
- Constants
- func RegisterSchema(reg *schemas.Registry)
- type Entry
- func (Entry) DecodeFromPtr(p capnp.Ptr) Entry
- func (s Entry) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Entry) HasIndex() bool
- func (s Entry) HasKey() bool
- func (s Entry) HasValue() bool
- func (s Entry) HasVnode() bool
- func (s Entry) Index() (Index, error)
- func (s Entry) IsValid() bool
- func (s Entry) Key() ([]byte, error)
- func (s Entry) Message() *capnp.Message
- func (s Entry) NewIndex() (Index, error)
- func (s Entry) NewVnode() (Node, error)
- func (s Entry) Segment() *capnp.Segment
- func (s Entry) SetIndex(v Index) error
- func (s Entry) SetKey(v []byte) error
- func (s Entry) SetValue(v []byte) error
- func (s Entry) SetVnode(v Node) error
- func (s Entry) String() string
- func (s Entry) ToPtr() capnp.Ptr
- func (s Entry) Value() ([]byte, error)
- func (s Entry) Vnode() (Node, error)
- func (s Entry) Which() Entry_Which
- type Entry_Future
- type Entry_List
- type Entry_Which
- type Index
- func (s Index) Count() uint64
- func (Index) DecodeFromPtr(p capnp.Ptr) Index
- func (s Index) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Index) HasRef() bool
- func (s Index) IsValid() bool
- func (s Index) Message() *capnp.Message
- func (s Index) Ref() ([]byte, error)
- func (s Index) Segment() *capnp.Segment
- func (s Index) SetCount(v uint64)
- func (s Index) SetRef(v []byte) error
- func (s Index) String() string
- func (s Index) ToPtr() capnp.Ptr
- type Index_Future
- type Index_List
- type Node
- func (Node) DecodeFromPtr(p capnp.Ptr) Node
- func (s Node) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Node) Entries() (Entry_List, error)
- func (s Node) HasEntries() bool
- func (s Node) IsValid() bool
- func (s Node) Message() *capnp.Message
- func (s Node) NewEntries(n int32) (Entry_List, error)
- func (s Node) Segment() *capnp.Segment
- func (s Node) SetEntries(v Entry_List) error
- func (s Node) String() string
- func (s Node) ToPtr() capnp.Ptr
- type Node_Future
- type Node_List
Constants ¶
const Entry_TypeID = 0x9fb6af56de709433
Entry_TypeID is the unique identifier for the type Entry.
const Index_TypeID = 0xba9cf241dfa2755b
Index_TypeID is the unique identifier for the type Index.
const Node_TypeID = 0xd7716cf897996ddc
Node_TypeID is the unique identifier for the type Node.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
Types ¶
type Entry ¶
func (Entry) NewIndex ¶ added in v0.0.2
NewIndex sets the index field to a newly allocated Index struct, preferring placement in s's segment.
func (Entry) NewVnode ¶ added in v0.0.2
NewVnode sets the vnode field to a newly allocated Node struct, preferring placement in s's segment.
func (Entry) Which ¶ added in v0.0.2
func (s Entry) Which() Entry_Which
type Entry_Future ¶
Entry_Future is a wrapper for a Entry promised by a client call.
func (Entry_Future) Index ¶ added in v0.0.2
func (p Entry_Future) Index() Index_Future
func (Entry_Future) Struct ¶
func (f Entry_Future) Struct() (Entry, error)
func (Entry_Future) Vnode ¶ added in v0.0.2
func (p Entry_Future) Vnode() Node_Future
type Entry_List ¶
type Entry_List = capnp.StructList[Entry]
Entry_List is a list of Entry.
func NewEntry_List ¶
func NewEntry_List(s *capnp.Segment, sz int32) (Entry_List, error)
NewEntry creates a new list of Entry.
type Entry_Which ¶ added in v0.0.2
type Entry_Which uint16
const ( Entry_Which_value Entry_Which = 0 Entry_Which_index Entry_Which = 1 Entry_Which_vnode Entry_Which = 2 )
func (Entry_Which) String ¶ added in v0.0.2
func (w Entry_Which) String() string
type Index_Future ¶
Index_Future is a wrapper for a Index promised by a client call.
func (Index_Future) Struct ¶
func (f Index_Future) Struct() (Index, error)
type Index_List ¶
type Index_List = capnp.StructList[Index]
Index_List is a list of Index.
func NewIndex_List ¶
func NewIndex_List(s *capnp.Segment, sz int32) (Index_List, error)
NewIndex creates a new list of Index.
type Node ¶
func (Node) Entries ¶
func (s Node) Entries() (Entry_List, error)
func (Node) HasEntries ¶
func (Node) NewEntries ¶
func (s Node) NewEntries(n int32) (Entry_List, error)
NewEntries sets the entries field to a newly allocated Entry_List, preferring placement in s's segment.
func (Node) SetEntries ¶
func (s Node) SetEntries(v Entry_List) error
type Node_Future ¶
Node_Future is a wrapper for a Node promised by a client call.
func (Node_Future) Struct ¶
func (f Node_Future) Struct() (Node, error)