pb

package
v1.13.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package pb holds only Protocol Buffer definitions and generated code.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHandshake        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHandshake          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupHandshake = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Ack

type Ack struct {
	Address        *BzzAddress `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
	NetworkID      uint64      `protobuf:"varint,2,opt,name=NetworkID,proto3" json:"NetworkID,omitempty"`
	FullNode       bool        `protobuf:"varint,3,opt,name=FullNode,proto3" json:"FullNode,omitempty"`
	Nonce          []byte      `protobuf:"bytes,4,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	WelcomeMessage string      `protobuf:"bytes,99,opt,name=WelcomeMessage,proto3" json:"WelcomeMessage,omitempty"`
}

func (*Ack) Descriptor

func (*Ack) Descriptor() ([]byte, []int)

func (*Ack) GetAddress

func (m *Ack) GetAddress() *BzzAddress

func (*Ack) GetFullNode added in v0.6.0

func (m *Ack) GetFullNode() bool

func (*Ack) GetNetworkID

func (m *Ack) GetNetworkID() uint64

func (*Ack) GetNonce added in v1.8.0

func (m *Ack) GetNonce() []byte

func (*Ack) GetWelcomeMessage

func (m *Ack) GetWelcomeMessage() string

func (*Ack) Marshal

func (m *Ack) Marshal() (dAtA []byte, err error)

func (*Ack) MarshalTo

func (m *Ack) MarshalTo(dAtA []byte) (int, error)

func (*Ack) MarshalToSizedBuffer

func (m *Ack) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) Reset

func (m *Ack) Reset()

func (*Ack) Size

func (m *Ack) Size() (n int)

func (*Ack) String

func (m *Ack) String() string

func (*Ack) Unmarshal

func (m *Ack) Unmarshal(dAtA []byte) error

func (*Ack) XXX_DiscardUnknown

func (m *Ack) XXX_DiscardUnknown()

func (*Ack) XXX_Marshal

func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ack) XXX_Merge

func (m *Ack) XXX_Merge(src proto.Message)

func (*Ack) XXX_Size

func (m *Ack) XXX_Size() int

func (*Ack) XXX_Unmarshal

func (m *Ack) XXX_Unmarshal(b []byte) error

type BzzAddress

type BzzAddress struct {
	Underlay  []byte `protobuf:"bytes,1,opt,name=Underlay,proto3" json:"Underlay,omitempty"`
	Signature []byte `protobuf:"bytes,2,opt,name=Signature,proto3" json:"Signature,omitempty"`
	Overlay   []byte `protobuf:"bytes,3,opt,name=Overlay,proto3" json:"Overlay,omitempty"`
}

func (*BzzAddress) Descriptor

func (*BzzAddress) Descriptor() ([]byte, []int)

func (*BzzAddress) GetOverlay

func (m *BzzAddress) GetOverlay() []byte

func (*BzzAddress) GetSignature

func (m *BzzAddress) GetSignature() []byte

func (*BzzAddress) GetUnderlay

func (m *BzzAddress) GetUnderlay() []byte

func (*BzzAddress) Marshal

func (m *BzzAddress) Marshal() (dAtA []byte, err error)

func (*BzzAddress) MarshalTo

func (m *BzzAddress) MarshalTo(dAtA []byte) (int, error)

func (*BzzAddress) MarshalToSizedBuffer

func (m *BzzAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BzzAddress) ProtoMessage

func (*BzzAddress) ProtoMessage()

func (*BzzAddress) Reset

func (m *BzzAddress) Reset()

func (*BzzAddress) Size

func (m *BzzAddress) Size() (n int)

func (*BzzAddress) String

func (m *BzzAddress) String() string

func (*BzzAddress) Unmarshal

func (m *BzzAddress) Unmarshal(dAtA []byte) error

func (*BzzAddress) XXX_DiscardUnknown

func (m *BzzAddress) XXX_DiscardUnknown()

func (*BzzAddress) XXX_Marshal

func (m *BzzAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BzzAddress) XXX_Merge

func (m *BzzAddress) XXX_Merge(src proto.Message)

func (*BzzAddress) XXX_Size

func (m *BzzAddress) XXX_Size() int

func (*BzzAddress) XXX_Unmarshal

func (m *BzzAddress) XXX_Unmarshal(b []byte) error

type Syn

type Syn struct {
	ObservedUnderlay []byte `protobuf:"bytes,1,opt,name=ObservedUnderlay,proto3" json:"ObservedUnderlay,omitempty"`
}

func (*Syn) Descriptor

func (*Syn) Descriptor() ([]byte, []int)

func (*Syn) GetObservedUnderlay

func (m *Syn) GetObservedUnderlay() []byte

func (*Syn) Marshal

func (m *Syn) Marshal() (dAtA []byte, err error)

func (*Syn) MarshalTo

func (m *Syn) MarshalTo(dAtA []byte) (int, error)

func (*Syn) MarshalToSizedBuffer

func (m *Syn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Syn) ProtoMessage

func (*Syn) ProtoMessage()

func (*Syn) Reset

func (m *Syn) Reset()

func (*Syn) Size

func (m *Syn) Size() (n int)

func (*Syn) String

func (m *Syn) String() string

func (*Syn) Unmarshal

func (m *Syn) Unmarshal(dAtA []byte) error

func (*Syn) XXX_DiscardUnknown

func (m *Syn) XXX_DiscardUnknown()

func (*Syn) XXX_Marshal

func (m *Syn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Syn) XXX_Merge

func (m *Syn) XXX_Merge(src proto.Message)

func (*Syn) XXX_Size

func (m *Syn) XXX_Size() int

func (*Syn) XXX_Unmarshal

func (m *Syn) XXX_Unmarshal(b []byte) error

type SynAck

type SynAck struct {
	Syn *Syn `protobuf:"bytes,1,opt,name=Syn,proto3" json:"Syn,omitempty"`
	Ack *Ack `protobuf:"bytes,2,opt,name=Ack,proto3" json:"Ack,omitempty"`
}

func (*SynAck) Descriptor

func (*SynAck) Descriptor() ([]byte, []int)

func (*SynAck) GetAck

func (m *SynAck) GetAck() *Ack

func (*SynAck) GetSyn

func (m *SynAck) GetSyn() *Syn

func (*SynAck) Marshal

func (m *SynAck) Marshal() (dAtA []byte, err error)

func (*SynAck) MarshalTo

func (m *SynAck) MarshalTo(dAtA []byte) (int, error)

func (*SynAck) MarshalToSizedBuffer

func (m *SynAck) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SynAck) ProtoMessage

func (*SynAck) ProtoMessage()

func (*SynAck) Reset

func (m *SynAck) Reset()

func (*SynAck) Size

func (m *SynAck) Size() (n int)

func (*SynAck) String

func (m *SynAck) String() string

func (*SynAck) Unmarshal

func (m *SynAck) Unmarshal(dAtA []byte) error

func (*SynAck) XXX_DiscardUnknown

func (m *SynAck) XXX_DiscardUnknown()

func (*SynAck) XXX_Marshal

func (m *SynAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SynAck) XXX_Merge

func (m *SynAck) XXX_Merge(src proto.Message)

func (*SynAck) XXX_Size

func (m *SynAck) XXX_Size() int

func (*SynAck) XXX_Unmarshal

func (m *SynAck) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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