Documentation ¶
Index ¶
- Constants
- func RegisterSchema(reg *schemas.Registry)
- type Packet
- func (Packet) DecodeFromPtr(p capnp.Ptr) Packet
- func (s Packet) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Packet) HasNamespace() bool
- func (s Packet) IsValid() bool
- func (s Packet) Message() *capnp.Message
- func (s Packet) Namespace() (string, error)
- func (s Packet) NamespaceBytes() ([]byte, error)
- func (s Packet) Request() Packet_request
- func (s Packet) Response() Packet_response
- func (s Packet) Segment() *capnp.Segment
- func (s Packet) SetNamespace(v string) error
- func (s Packet) SetRequest()
- func (s Packet) SetResponse()
- func (s Packet) SetSurvey()
- func (s Packet) String() string
- func (s Packet) Survey() Packet_survey
- func (s Packet) ToPtr() capnp.Ptr
- func (s Packet) Which() Packet_Which
- type Packet_Future
- type Packet_List
- type Packet_Which
- type Packet_request
- func (s Packet_request) From() (string, error)
- func (s Packet_request) FromBytes() ([]byte, error)
- func (s Packet_request) HasFrom() bool
- func (s Packet_request) IsValid() bool
- func (s Packet_request) Message() *capnp.Message
- func (s Packet_request) Segment() *capnp.Segment
- func (s Packet_request) SetFrom(v string) error
- type Packet_request_Future
- type Packet_response
- func (s Packet_response) Addrs() (capnp.DataList, error)
- func (s Packet_response) HasAddrs() bool
- func (s Packet_response) HasPeer() bool
- func (s Packet_response) IsValid() bool
- func (s Packet_response) Message() *capnp.Message
- func (s Packet_response) NewAddrs(n int32) (capnp.DataList, error)
- func (s Packet_response) Peer() (string, error)
- func (s Packet_response) PeerBytes() ([]byte, error)
- func (s Packet_response) Segment() *capnp.Segment
- func (s Packet_response) SetAddrs(v capnp.DataList) error
- func (s Packet_response) SetPeer(v string) error
- type Packet_response_Future
- type Packet_survey
- func (s Packet_survey) Distance() uint8
- func (s Packet_survey) From() (string, error)
- func (s Packet_survey) FromBytes() ([]byte, error)
- func (s Packet_survey) HasFrom() bool
- func (s Packet_survey) IsValid() bool
- func (s Packet_survey) Message() *capnp.Message
- func (s Packet_survey) Segment() *capnp.Segment
- func (s Packet_survey) SetDistance(v uint8)
- func (s Packet_survey) SetFrom(v string) error
- type Packet_survey_Future
Constants ¶
View Source
const Packet_TypeID = 0xe12a1e555ca80e30
Packet_TypeID is the unique identifier for the type Packet.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
Types ¶
type Packet ¶
func (Packet) HasNamespace ¶
func (Packet) NamespaceBytes ¶
func (Packet) Request ¶
func (s Packet) Request() Packet_request
func (Packet) Response ¶
func (s Packet) Response() Packet_response
func (Packet) SetNamespace ¶
func (Packet) SetRequest ¶
func (s Packet) SetRequest()
func (Packet) SetResponse ¶
func (s Packet) SetResponse()
func (Packet) Survey ¶
func (s Packet) Survey() Packet_survey
func (Packet) Which ¶
func (s Packet) Which() Packet_Which
type Packet_Future ¶
Packet_Future is a wrapper for a Packet promised by a client call.
func (Packet_Future) Request ¶
func (p Packet_Future) Request() Packet_request_Future
func (Packet_Future) Response ¶
func (p Packet_Future) Response() Packet_response_Future
func (Packet_Future) Struct ¶
func (f Packet_Future) Struct() (Packet, error)
func (Packet_Future) Survey ¶
func (p Packet_Future) Survey() Packet_survey_Future
type Packet_List ¶
type Packet_List = capnp.StructList[Packet]
Packet_List is a list of Packet.
func NewPacket_List ¶
func NewPacket_List(s *capnp.Segment, sz int32) (Packet_List, error)
NewPacket creates a new list of Packet.
type Packet_Which ¶
type Packet_Which uint16
const ( Packet_Which_request Packet_Which = 0 Packet_Which_survey Packet_Which = 1 Packet_Which_response Packet_Which = 2 )
func (Packet_Which) String ¶
func (w Packet_Which) String() string
type Packet_request ¶
type Packet_request Packet
func (Packet_request) From ¶
func (s Packet_request) From() (string, error)
func (Packet_request) FromBytes ¶
func (s Packet_request) FromBytes() ([]byte, error)
func (Packet_request) HasFrom ¶
func (s Packet_request) HasFrom() bool
func (Packet_request) IsValid ¶
func (s Packet_request) IsValid() bool
func (Packet_request) Message ¶
func (s Packet_request) Message() *capnp.Message
func (Packet_request) Segment ¶
func (s Packet_request) Segment() *capnp.Segment
func (Packet_request) SetFrom ¶
func (s Packet_request) SetFrom(v string) error
type Packet_request_Future ¶
Packet_request_Future is a wrapper for a Packet_request promised by a client call.
func (Packet_request_Future) Struct ¶
func (f Packet_request_Future) Struct() (Packet_request, error)
type Packet_response ¶
type Packet_response Packet
func (Packet_response) HasAddrs ¶
func (s Packet_response) HasAddrs() bool
func (Packet_response) HasPeer ¶
func (s Packet_response) HasPeer() bool
func (Packet_response) IsValid ¶
func (s Packet_response) IsValid() bool
func (Packet_response) Message ¶
func (s Packet_response) Message() *capnp.Message
func (Packet_response) NewAddrs ¶
func (s Packet_response) NewAddrs(n int32) (capnp.DataList, error)
NewAddrs sets the addrs field to a newly allocated capnp.DataList, preferring placement in s's segment.
func (Packet_response) Peer ¶
func (s Packet_response) Peer() (string, error)
func (Packet_response) PeerBytes ¶
func (s Packet_response) PeerBytes() ([]byte, error)
func (Packet_response) Segment ¶
func (s Packet_response) Segment() *capnp.Segment
func (Packet_response) SetPeer ¶
func (s Packet_response) SetPeer(v string) error
type Packet_response_Future ¶
Packet_response_Future is a wrapper for a Packet_response promised by a client call.
func (Packet_response_Future) Struct ¶
func (f Packet_response_Future) Struct() (Packet_response, error)
type Packet_survey ¶
type Packet_survey Packet
func (Packet_survey) Distance ¶
func (s Packet_survey) Distance() uint8
func (Packet_survey) From ¶
func (s Packet_survey) From() (string, error)
func (Packet_survey) FromBytes ¶
func (s Packet_survey) FromBytes() ([]byte, error)
func (Packet_survey) HasFrom ¶
func (s Packet_survey) HasFrom() bool
func (Packet_survey) IsValid ¶
func (s Packet_survey) IsValid() bool
func (Packet_survey) Message ¶
func (s Packet_survey) Message() *capnp.Message
func (Packet_survey) Segment ¶
func (s Packet_survey) Segment() *capnp.Segment
func (Packet_survey) SetDistance ¶
func (s Packet_survey) SetDistance(v uint8)
func (Packet_survey) SetFrom ¶
func (s Packet_survey) SetFrom(v string) error
type Packet_survey_Future ¶
Packet_survey_Future is a wrapper for a Packet_survey promised by a client call.
func (Packet_survey_Future) Struct ¶
func (f Packet_survey_Future) Struct() (Packet_survey, error)
Click to show internal directories.
Click to hide internal directories.