rpc

package
v0.0.0-...-52b4e32 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Batch_TypeID = 0xa7f59e6ee73e90ad

Batch_TypeID is the unique identifier for the type Batch.

View Source
const ConvoMsg_TypeID = 0xe4fb25d5577e606e

ConvoMsg_TypeID is the unique identifier for the type ConvoMsg.

View Source
const EntryConvoMsg_TypeID = 0x902882978134d105

EntryConvoMsg_TypeID is the unique identifier for the type EntryConvoMsg.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct{ capnp.Struct }

func NewBatch

func NewBatch(s *capnp.Segment) (Batch, error)

func NewRootBatch

func NewRootBatch(s *capnp.Segment) (Batch, error)

func ReadRootBatch

func ReadRootBatch(msg *capnp.Message) (Batch, error)

func (Batch) HasMsgs

func (s Batch) HasMsgs() bool

func (Batch) Msgs

func (s Batch) Msgs() (ConvoMsg_List, error)

func (Batch) NewMsgs

func (s Batch) NewMsgs(n int32) (ConvoMsg_List, error)

NewMsgs sets the msgs field to a newly allocated ConvoMsg_List, preferring placement in s's segment.

func (Batch) SetMsgs

func (s Batch) SetMsgs(v ConvoMsg_List) error

func (Batch) String

func (s Batch) String() string

type Batch_List

type Batch_List struct{ capnp.List }

Batch_List is a list of Batch.

func NewBatch_List

func NewBatch_List(s *capnp.Segment, sz int32) (Batch_List, error)

NewBatch creates a new list of Batch.

func (Batch_List) At

func (s Batch_List) At(i int) Batch

func (Batch_List) Set

func (s Batch_List) Set(i int, v Batch) error

func (Batch_List) String

func (s Batch_List) String() string

type Batch_Promise

type Batch_Promise struct{ *capnp.Pipeline }

Batch_Promise is a wrapper for a Batch promised by a client call.

func (Batch_Promise) Struct

func (p Batch_Promise) Struct() (Batch, error)

type ConvoMsg

type ConvoMsg struct{ capnp.Struct }

func NewConvoMsg

func NewConvoMsg(s *capnp.Segment) (ConvoMsg, error)

func NewRootConvoMsg

func NewRootConvoMsg(s *capnp.Segment) (ConvoMsg, error)

func ReadRootConvoMsg

func ReadRootConvoMsg(msg *capnp.Message) (ConvoMsg, error)

func (ConvoMsg) Content

func (s ConvoMsg) Content() ([]byte, error)

func (ConvoMsg) HasContent

func (s ConvoMsg) HasContent() bool

func (ConvoMsg) HasPubKeyOrAddr

func (s ConvoMsg) HasPubKeyOrAddr() bool

func (ConvoMsg) PubKeyOrAddr

func (s ConvoMsg) PubKeyOrAddr() ([]byte, error)

func (ConvoMsg) SetContent

func (s ConvoMsg) SetContent(v []byte) error

func (ConvoMsg) SetPubKeyOrAddr

func (s ConvoMsg) SetPubKeyOrAddr(v []byte) error

func (ConvoMsg) String

func (s ConvoMsg) String() string

type ConvoMsg_List

type ConvoMsg_List struct{ capnp.List }

ConvoMsg_List is a list of ConvoMsg.

func NewConvoMsg_List

func NewConvoMsg_List(s *capnp.Segment, sz int32) (ConvoMsg_List, error)

NewConvoMsg creates a new list of ConvoMsg.

func (ConvoMsg_List) At

func (s ConvoMsg_List) At(i int) ConvoMsg

func (ConvoMsg_List) Set

func (s ConvoMsg_List) Set(i int, v ConvoMsg) error

func (ConvoMsg_List) String

func (s ConvoMsg_List) String() string

type ConvoMsg_Promise

type ConvoMsg_Promise struct{ *capnp.Pipeline }

ConvoMsg_Promise is a wrapper for a ConvoMsg promised by a client call.

func (ConvoMsg_Promise) Struct

func (p ConvoMsg_Promise) Struct() (ConvoMsg, error)

type EntryConvoMsg

type EntryConvoMsg struct{ capnp.Struct }

func NewEntryConvoMsg

func NewEntryConvoMsg(s *capnp.Segment) (EntryConvoMsg, error)

func NewRootEntryConvoMsg

func NewRootEntryConvoMsg(s *capnp.Segment) (EntryConvoMsg, error)

func ReadRootEntryConvoMsg

func ReadRootEntryConvoMsg(msg *capnp.Message) (EntryConvoMsg, error)

func (EntryConvoMsg) Content

func (s EntryConvoMsg) Content() ([]byte, error)

func (EntryConvoMsg) HasContent

func (s EntryConvoMsg) HasContent() bool

func (EntryConvoMsg) HasPubKeyOrAddr

func (s EntryConvoMsg) HasPubKeyOrAddr() bool

func (EntryConvoMsg) HasSender

func (s EntryConvoMsg) HasSender() bool

func (EntryConvoMsg) PubKeyOrAddr

func (s EntryConvoMsg) PubKeyOrAddr() ([]byte, error)

func (EntryConvoMsg) Sender

func (s EntryConvoMsg) Sender() (string, error)

func (EntryConvoMsg) SenderBytes

func (s EntryConvoMsg) SenderBytes() ([]byte, error)

func (EntryConvoMsg) SetContent

func (s EntryConvoMsg) SetContent(v []byte) error

func (EntryConvoMsg) SetPubKeyOrAddr

func (s EntryConvoMsg) SetPubKeyOrAddr(v []byte) error

func (EntryConvoMsg) SetSender

func (s EntryConvoMsg) SetSender(v string) error

func (EntryConvoMsg) String

func (s EntryConvoMsg) String() string

type EntryConvoMsg_List

type EntryConvoMsg_List struct{ capnp.List }

EntryConvoMsg_List is a list of EntryConvoMsg.

func NewEntryConvoMsg_List

func NewEntryConvoMsg_List(s *capnp.Segment, sz int32) (EntryConvoMsg_List, error)

NewEntryConvoMsg creates a new list of EntryConvoMsg.

func (EntryConvoMsg_List) At

func (EntryConvoMsg_List) Set

func (EntryConvoMsg_List) String

func (s EntryConvoMsg_List) String() string

type EntryConvoMsg_Promise

type EntryConvoMsg_Promise struct{ *capnp.Pipeline }

EntryConvoMsg_Promise is a wrapper for a EntryConvoMsg promised by a client call.

func (EntryConvoMsg_Promise) Struct

Jump to

Keyboard shortcuts

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