pb

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSerialize        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSerialize          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSerialize = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type BirdsNest

type BirdsNest struct {
	// Bird's Nest config
	Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// The final height
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// current index
	CurrentIndex uint32 `protobuf:"varint,3,opt,name=currentIndex,proto3" json:"currentIndex,omitempty"`
	// A group of cuckoos filter
	Filters []*CuckooFilter `protobuf:"bytes,4,rep,name=filters,proto3" json:"filters,omitempty"`
}

Bird's Nest

func (*BirdsNest) Descriptor

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

func (*BirdsNest) GetConfig

func (m *BirdsNest) GetConfig() []byte

func (*BirdsNest) GetCurrentIndex

func (m *BirdsNest) GetCurrentIndex() uint32

func (*BirdsNest) GetFilters

func (m *BirdsNest) GetFilters() []*CuckooFilter

func (*BirdsNest) GetHeight

func (m *BirdsNest) GetHeight() uint64

func (*BirdsNest) Marshal

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

func (*BirdsNest) MarshalTo

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

func (*BirdsNest) MarshalToSizedBuffer

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

func (*BirdsNest) ProtoMessage

func (*BirdsNest) ProtoMessage()

func (*BirdsNest) Reset

func (m *BirdsNest) Reset()

func (*BirdsNest) Size

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

func (*BirdsNest) String

func (m *BirdsNest) String() string

func (*BirdsNest) Unmarshal

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

func (*BirdsNest) XXX_DiscardUnknown

func (m *BirdsNest) XXX_DiscardUnknown()

func (*BirdsNest) XXX_Marshal

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

func (*BirdsNest) XXX_Merge

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

func (*BirdsNest) XXX_Size

func (m *BirdsNest) XXX_Size() int

func (*BirdsNest) XXX_Unmarshal

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

type CuckooFilter

type CuckooFilter struct {
	// The field "cuckoo" is used to hold the serialized data of the cuckoo
	// Pb limit: The size of bytes cannot be larger than 4 GB
	Cuckoo []byte `protobuf:"bytes,1,opt,name=cuckoo,proto3" json:"cuckoo,omitempty"`
	// Carries the ID of the time
	Extension []byte `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"`
	// cuckoo configuration
	Config []byte `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	// cuckoo configuration
	Full bool `protobuf:"varint,4,opt,name=full,proto3" json:"full,omitempty"`
}

Chain table structure

func (*CuckooFilter) Descriptor

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

func (*CuckooFilter) GetConfig

func (m *CuckooFilter) GetConfig() []byte

func (*CuckooFilter) GetCuckoo

func (m *CuckooFilter) GetCuckoo() []byte

func (*CuckooFilter) GetExtension

func (m *CuckooFilter) GetExtension() []byte

func (*CuckooFilter) GetFull

func (m *CuckooFilter) GetFull() bool

func (*CuckooFilter) Marshal

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

func (*CuckooFilter) MarshalTo

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

func (*CuckooFilter) MarshalToSizedBuffer

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

func (*CuckooFilter) ProtoMessage

func (*CuckooFilter) ProtoMessage()

func (*CuckooFilter) Reset

func (m *CuckooFilter) Reset()

func (*CuckooFilter) Size

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

func (*CuckooFilter) String

func (m *CuckooFilter) String() string

func (*CuckooFilter) Unmarshal

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

func (*CuckooFilter) XXX_DiscardUnknown

func (m *CuckooFilter) XXX_DiscardUnknown()

func (*CuckooFilter) XXX_Marshal

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

func (*CuckooFilter) XXX_Merge

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

func (*CuckooFilter) XXX_Size

func (m *CuckooFilter) XXX_Size() int

func (*CuckooFilter) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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