pb

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	ReserveSizeWithinRadius uint64  `protobuf:"varint,9,opt,name=ReserveSizeWithinRadius,proto3" json:"ReserveSizeWithinRadius,omitempty"`
	LastSyncedBlock         uint64  `protobuf:"varint,10,opt,name=LastSyncedBlock,proto3" json:"LastSyncedBlock,omitempty"`
	CommittedDepth          uint32  `protobuf:"varint,11,opt,name=CommittedDepth,proto3" json:"CommittedDepth,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

func (m *Snapshot) GetBatchCommitment() uint64

func (*Snapshot) GetBeeMode

func (m *Snapshot) GetBeeMode() string

func (*Snapshot) GetCommittedDepth added in v2.3.0

func (m *Snapshot) GetCommittedDepth() uint32

func (*Snapshot) GetConnectedPeers

func (m *Snapshot) GetConnectedPeers() uint64

func (*Snapshot) GetIsReachable

func (m *Snapshot) GetIsReachable() bool

func (*Snapshot) GetLastSyncedBlock added in v2.2.0

func (m *Snapshot) GetLastSyncedBlock() uint64

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

func (m *Snapshot) GetReserveSizeWithinRadius() 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