pex

package
v0.0.0-...-055f8da Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Gossip_TypeID = 0xfcef4b0e93332397

Gossip_TypeID is the unique identifier for the type Gossip.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type Gossip

type Gossip capnp.Struct

func NewGossip

func NewGossip(s *capnp.Segment) (Gossip, error)

func NewRootGossip

func NewRootGossip(s *capnp.Segment) (Gossip, error)

func ReadRootGossip

func ReadRootGossip(msg *capnp.Message) (Gossip, error)

func (Gossip) DecodeFromPtr

func (Gossip) DecodeFromPtr(p capnp.Ptr) Gossip

func (Gossip) EncodeAsPtr

func (s Gossip) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Gossip) Envelope

func (s Gossip) Envelope() ([]byte, error)

func (Gossip) HasEnvelope

func (s Gossip) HasEnvelope() bool

func (Gossip) Hop

func (s Gossip) Hop() uint64

func (Gossip) IsValid

func (s Gossip) IsValid() bool

func (Gossip) Message

func (s Gossip) Message() *capnp.Message

func (Gossip) Segment

func (s Gossip) Segment() *capnp.Segment

func (Gossip) SetEnvelope

func (s Gossip) SetEnvelope(v []byte) error

func (Gossip) SetHop

func (s Gossip) SetHop(v uint64)

func (Gossip) String

func (s Gossip) String() string

func (Gossip) ToPtr

func (s Gossip) ToPtr() capnp.Ptr

type Gossip_Future

type Gossip_Future struct{ *capnp.Future }

Gossip_Future is a wrapper for a Gossip promised by a client call.

func (Gossip_Future) Struct

func (f Gossip_Future) Struct() (Gossip, error)

type Gossip_List

type Gossip_List = capnp.StructList[Gossip]

Gossip_List is a list of Gossip.

func NewGossip_List

func NewGossip_List(s *capnp.Segment, sz int32) (Gossip_List, error)

NewGossip creates a new list of Gossip.

Jump to

Keyboard shortcuts

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