tendermint: github.com/tendermint/tendermint/libs/kv Index | Files

package kv

import "github.com/tendermint/tendermint/libs/kv"

nolint: dupl dupl is reading this as the same file as crypto/merkle/result.go

Index

Package Files

kvpair.go result.go types.pb.go

Variables

var (
    ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

type Pair Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedPair Uses

func NewPopulatedPair(r randyTypes, easy bool) *Pair

func (*Pair) Descriptor Uses

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

func (*Pair) Equal Uses

func (this *Pair) Equal(that interface{}) bool

func (*Pair) GetKey Uses

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

func (*Pair) GetValue Uses

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

func (*Pair) Marshal Uses

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

func (*Pair) MarshalJSON Uses

func (r *Pair) MarshalJSON() ([]byte, error)

func (*Pair) MarshalTo Uses

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

func (*Pair) MarshalToSizedBuffer Uses

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

func (*Pair) ProtoMessage Uses

func (*Pair) ProtoMessage()

func (*Pair) Reset Uses

func (m *Pair) Reset()

func (*Pair) Size Uses

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

func (*Pair) String Uses

func (m *Pair) String() string

func (*Pair) Unmarshal Uses

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

func (*Pair) UnmarshalJSON Uses

func (r *Pair) UnmarshalJSON(b []byte) error

func (*Pair) XXX_DiscardUnknown Uses

func (m *Pair) XXX_DiscardUnknown()

func (*Pair) XXX_Marshal Uses

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

func (*Pair) XXX_Merge Uses

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

func (*Pair) XXX_Size Uses

func (m *Pair) XXX_Size() int

func (*Pair) XXX_Unmarshal Uses

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

type Pairs Uses

type Pairs []Pair

func (Pairs) Len Uses

func (kvs Pairs) Len() int

Sorting

func (Pairs) Less Uses

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

func (Pairs) Sort Uses

func (kvs Pairs) Sort()

func (Pairs) Swap Uses

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

Package kv imports 11 packages (graph) and is imported by 24 packages. Updated 2020-03-30. Refresh now. Tools for package owners.