pb

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthStatus        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStatus          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStatus = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Get

type Get struct {
}

Get message indicate interest in receiving a node Snapshot.

func (*Get) Descriptor

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

func (*Get) Marshal

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

func (*Get) MarshalTo

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

func (*Get) MarshalToSizedBuffer

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

func (*Get) ProtoMessage

func (*Get) ProtoMessage()

func (*Get) Reset

func (m *Get) Reset()

func (*Get) Size

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

func (*Get) String

func (m *Get) String() string

func (*Get) Unmarshal

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

func (*Get) XXX_DiscardUnknown

func (m *Get) XXX_DiscardUnknown()

func (*Get) XXX_Marshal

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

func (*Get) XXX_Merge

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

func (*Get) XXX_Size

func (m *Get) XXX_Size() int

func (*Get) XXX_Unmarshal

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

type Snapshot

type Snapshot struct {
	ReserveSize      uint64  `protobuf:"varint,1,opt,name=ReserveSize,proto3" json:"ReserveSize,omitempty"`
	PullsyncRate     float64 `protobuf:"fixed64,2,opt,name=PullsyncRate,proto3" json:"PullsyncRate,omitempty"`
	StorageRadius    uint32  `protobuf:"varint,3,opt,name=StorageRadius,proto3" json:"StorageRadius,omitempty"`
	ConnectedPeers   uint64  `protobuf:"varint,4,opt,name=ConnectedPeers,proto3" json:"ConnectedPeers,omitempty"`
	NeighborhoodSize uint64  `protobuf:"varint,5,opt,name=NeighborhoodSize,proto3" json:"NeighborhoodSize,omitempty"`
	BeeMode          string  `protobuf:"bytes,6,opt,name=BeeMode,proto3" json:"BeeMode,omitempty"`
	BatchCommitment  uint64  `protobuf:"varint,7,opt,name=BatchCommitment,proto3" json:"BatchCommitment,omitempty"`
	IsReachable      bool    `protobuf:"varint,8,opt,name=IsReachable,proto3" json:"IsReachable,omitempty"`
}

Snapshot message is a response to the Get message and contains the appropriate values that are a snapshot of the current state of the running node.

func (*Snapshot) Descriptor

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

func (*Snapshot) GetBatchCommitment added in v1.16.0

func (m *Snapshot) GetBatchCommitment() uint64

func (*Snapshot) GetBeeMode added in v1.15.0

func (m *Snapshot) GetBeeMode() string

func (*Snapshot) GetConnectedPeers

func (m *Snapshot) GetConnectedPeers() uint64

func (*Snapshot) GetIsReachable added in v1.16.0

func (m *Snapshot) GetIsReachable() bool

func (*Snapshot) GetNeighborhoodSize

func (m *Snapshot) GetNeighborhoodSize() uint64

func (*Snapshot) GetPullsyncRate

func (m *Snapshot) GetPullsyncRate() float64

func (*Snapshot) GetReserveSize

func (m *Snapshot) GetReserveSize() uint64

func (*Snapshot) GetStorageRadius

func (m *Snapshot) GetStorageRadius() uint32

func (*Snapshot) Marshal

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

func (*Snapshot) MarshalTo

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

func (*Snapshot) MarshalToSizedBuffer

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

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) Reset

func (m *Snapshot) Reset()

func (*Snapshot) Size

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

func (*Snapshot) String

func (m *Snapshot) String() string

func (*Snapshot) Unmarshal

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

func (*Snapshot) XXX_DiscardUnknown

func (m *Snapshot) XXX_DiscardUnknown()

func (*Snapshot) XXX_Marshal

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

func (*Snapshot) XXX_Merge

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

func (*Snapshot) XXX_Size

func (m *Snapshot) XXX_Size() int

func (*Snapshot) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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