capnp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PinEntry_TypeID = 0xdb74f7cf7bc815c6

PinEntry_TypeID is the unique identifier for the type PinEntry.

View Source
const Pin_TypeID = 0x985d53e01674ee95

Pin_TypeID is the unique identifier for the type Pin.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pin

type Pin struct{ capnp.Struct }

func NewPin

func NewPin(s *capnp.Segment) (Pin, error)

func NewRootPin

func NewRootPin(s *capnp.Segment) (Pin, error)

func ReadRootPin

func ReadRootPin(msg *capnp.Message) (Pin, error)

func (Pin) Inode

func (s Pin) Inode() uint64

func (Pin) IsPinned

func (s Pin) IsPinned() bool

func (Pin) SetInode

func (s Pin) SetInode(v uint64)

func (Pin) SetIsPinned

func (s Pin) SetIsPinned(v bool)

func (Pin) String

func (s Pin) String() string

type PinEntry

type PinEntry struct{ capnp.Struct }

A single entry for a certain content node

func NewPinEntry

func NewPinEntry(s *capnp.Segment) (PinEntry, error)

func NewRootPinEntry

func NewRootPinEntry(s *capnp.Segment) (PinEntry, error)

func ReadRootPinEntry

func ReadRootPinEntry(msg *capnp.Message) (PinEntry, error)

func (PinEntry) HasPins

func (s PinEntry) HasPins() bool

func (PinEntry) NewPins

func (s PinEntry) NewPins(n int32) (Pin_List, error)

NewPins sets the pins field to a newly allocated Pin_List, preferring placement in s's segment.

func (PinEntry) Pins

func (s PinEntry) Pins() (Pin_List, error)

func (PinEntry) SetPins

func (s PinEntry) SetPins(v Pin_List) error

func (PinEntry) String

func (s PinEntry) String() string

type PinEntry_List

type PinEntry_List struct{ capnp.List }

PinEntry_List is a list of PinEntry.

func NewPinEntry_List

func NewPinEntry_List(s *capnp.Segment, sz int32) (PinEntry_List, error)

NewPinEntry creates a new list of PinEntry.

func (PinEntry_List) At

func (s PinEntry_List) At(i int) PinEntry

func (PinEntry_List) Set

func (s PinEntry_List) Set(i int, v PinEntry) error

func (PinEntry_List) String

func (s PinEntry_List) String() string

type PinEntry_Promise

type PinEntry_Promise struct{ *capnp.Pipeline }

PinEntry_Promise is a wrapper for a PinEntry promised by a client call.

func (PinEntry_Promise) Struct

func (p PinEntry_Promise) Struct() (PinEntry, error)

type Pin_List

type Pin_List struct{ capnp.List }

Pin_List is a list of Pin.

func NewPin_List

func NewPin_List(s *capnp.Segment, sz int32) (Pin_List, error)

NewPin creates a new list of Pin.

func (Pin_List) At

func (s Pin_List) At(i int) Pin

func (Pin_List) Set

func (s Pin_List) Set(i int, v Pin) error

func (Pin_List) String

func (s Pin_List) String() string

type Pin_Promise

type Pin_Promise struct{ *capnp.Pipeline }

Pin_Promise is a wrapper for a Pin promised by a client call.

func (Pin_Promise) Struct

func (p Pin_Promise) Struct() (Pin, error)

Jump to

Keyboard shortcuts

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