kv

package
v0.43.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthKv        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowKv          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupKv = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Pair

type Pair struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

Pair defines a key/value bytes tuple.

func (*Pair) Descriptor

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

func (*Pair) GetKey

func (m *Pair) GetKey() []byte

func (*Pair) GetValue

func (m *Pair) GetValue() []byte

func (*Pair) Marshal

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

func (*Pair) MarshalTo

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

func (*Pair) MarshalToSizedBuffer

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

func (*Pair) ProtoMessage

func (*Pair) ProtoMessage()

func (*Pair) Reset

func (m *Pair) Reset()

func (*Pair) Size

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

func (*Pair) String

func (m *Pair) String() string

func (*Pair) Unmarshal

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

func (*Pair) XXX_DiscardUnknown

func (m *Pair) XXX_DiscardUnknown()

func (*Pair) XXX_Marshal

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

func (*Pair) XXX_Merge

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

func (*Pair) XXX_Size

func (m *Pair) XXX_Size() int

func (*Pair) XXX_Unmarshal

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

type Pairs

type Pairs struct {
	Pairs []Pair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

Pairs defines a repeated slice of Pair objects.

func (*Pairs) Descriptor

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

func (*Pairs) GetPairs

func (m *Pairs) GetPairs() []Pair

func (Pairs) Len

func (kvs Pairs) Len() int

func (Pairs) Less

func (kvs Pairs) Less(i, j int) bool

func (*Pairs) Marshal

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

func (*Pairs) MarshalTo

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

func (*Pairs) MarshalToSizedBuffer

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

func (*Pairs) ProtoMessage

func (*Pairs) ProtoMessage()

func (*Pairs) Reset

func (m *Pairs) Reset()

func (*Pairs) Size

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

func (Pairs) Sort

func (kvs Pairs) Sort()

func (*Pairs) String

func (m *Pairs) String() string

func (Pairs) Swap

func (kvs Pairs) Swap(i, j int)

func (*Pairs) Unmarshal

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

func (*Pairs) XXX_DiscardUnknown

func (m *Pairs) XXX_DiscardUnknown()

func (*Pairs) XXX_Marshal

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

func (*Pairs) XXX_Merge

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

func (*Pairs) XXX_Size

func (m *Pairs) XXX_Size() int

func (*Pairs) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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