record

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRecord = fmt.Errorf("proto: unexpected end of group")
)

Functions

func Prototype

func Prototype() helpers.Record

Types

type Record

type Record struct {
	Key      *key.Key           `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Mappable *mappable.Mappable `protobuf:"bytes,2,opt,name=mappable,proto3" json:"mappable,omitempty"`
}

func NewRecord

func NewRecord(data data.Data) *Record

func RecordsFromInterface

func RecordsFromInterface(records []helpers.Record) []*Record

func (*Record) Delete

func (record *Record) Delete(kvStore sdkTypes.KVStore)

func (*Record) Descriptor

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

func (*Record) GetKey

func (record *Record) GetKey() helpers.Key

func (*Record) GetMappable

func (record *Record) GetMappable() helpers.Mappable

func (*Record) Marshal

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

func (*Record) MarshalTo

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

func (*Record) MarshalToSizedBuffer

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

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Read

func (record *Record) Read(kvStore sdkTypes.KVStore) helpers.Record

func (*Record) ReadFromIterator

func (record *Record) ReadFromIterator(iterator sdkTypes.Iterator) helpers.Record

func (*Record) Reset

func (m *Record) Reset()

func (*Record) Size

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

func (*Record) String

func (m *Record) String() string

func (*Record) Unmarshal

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

func (*Record) WithKey

func (record *Record) WithKey(Key helpers.Key) helpers.Record

func (*Record) Write

func (record *Record) Write(kvStore sdkTypes.KVStore) helpers.Record

func (*Record) XXX_DiscardUnknown

func (m *Record) XXX_DiscardUnknown()

func (*Record) XXX_Marshal

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

func (*Record) XXX_Merge

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

func (*Record) XXX_Size

func (m *Record) XXX_Size() int

func (*Record) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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