gossipmsg

package
v0.0.0-...-648c852 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Gossip_TypeID = 0xf72bafaeff08c61a

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) Data

func (s Gossip) Data() Gossip_data

func (Gossip) DecodeFromPtr

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

func (Gossip) EncodeAsPtr

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

func (Gossip) HasId

func (s Gossip) HasId() bool

func (Gossip) Id

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

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) SetData

func (s Gossip) SetData()

func (Gossip) SetId

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

func (Gossip) SetSignature

func (s Gossip) SetSignature()

func (Gossip) Signature

func (s Gossip) Signature() Gossip_signature

func (Gossip) String

func (s Gossip) String() string

func (Gossip) ToPtr

func (s Gossip) ToPtr() capnp.Ptr

func (Gossip) Which

func (s Gossip) Which() Gossip_Which

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) Data

func (Gossip_Future) Signature

func (p Gossip_Future) Signature() Gossip_signature_Future

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.

type Gossip_Which

type Gossip_Which uint16
const (
	Gossip_Which_signature Gossip_Which = 0
	Gossip_Which_data      Gossip_Which = 1
)

func (Gossip_Which) String

func (w Gossip_Which) String() string

type Gossip_data

type Gossip_data Gossip

func (Gossip_data) Data

func (s Gossip_data) Data() ([]byte, error)

func (Gossip_data) HasData

func (s Gossip_data) HasData() bool

func (Gossip_data) IsValid

func (s Gossip_data) IsValid() bool

func (Gossip_data) Message

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

func (Gossip_data) Segment

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

func (Gossip_data) SetData

func (s Gossip_data) SetData(v []byte) error

type Gossip_data_Future

type Gossip_data_Future struct{ *capnp.Future }

Gossip_data_Future is a wrapper for a Gossip_data promised by a client call.

func (Gossip_data_Future) Struct

func (f Gossip_data_Future) Struct() (Gossip_data, error)

type Gossip_signature

type Gossip_signature Gossip

func (Gossip_signature) HasSignature

func (s Gossip_signature) HasSignature() bool

func (Gossip_signature) HasSigner

func (s Gossip_signature) HasSigner() bool

func (Gossip_signature) IsValid

func (s Gossip_signature) IsValid() bool

func (Gossip_signature) Message

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

func (Gossip_signature) Segment

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

func (Gossip_signature) SetSignature

func (s Gossip_signature) SetSignature(v []byte) error

func (Gossip_signature) SetSigner

func (s Gossip_signature) SetSigner(v []byte) error

func (Gossip_signature) Signature

func (s Gossip_signature) Signature() ([]byte, error)

func (Gossip_signature) Signer

func (s Gossip_signature) Signer() ([]byte, error)

type Gossip_signature_Future

type Gossip_signature_Future struct{ *capnp.Future }

Gossip_signature_Future is a wrapper for a Gossip_signature promised by a client call.

func (Gossip_signature_Future) Struct

Jump to

Keyboard shortcuts

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