cosmos-sdk: github.com/cosmos/cosmos-sdk/types/kv Index | Files

package kv

import "github.com/cosmos/cosmos-sdk/types/kv"

Index

Package Files

kv.go kv.pb.go

Variables

var (
    ErrInvalidLengthKv        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowKv          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupKv = 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"`
}

Pair defines a key/value bytes tuple.

func (*Pair) Descriptor Uses

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

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) 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) 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 struct {
    Pairs []Pair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

Pairs defines a repeated slice of Pair objects.

func (*Pairs) Descriptor Uses

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

func (*Pairs) GetPairs Uses

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

func (Pairs) Len Uses

func (kvs Pairs) Len() int

func (Pairs) Less Uses

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

func (*Pairs) Marshal Uses

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

func (*Pairs) MarshalTo Uses

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

func (*Pairs) MarshalToSizedBuffer Uses

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

func (*Pairs) ProtoMessage Uses

func (*Pairs) ProtoMessage()

func (*Pairs) Reset Uses

func (m *Pairs) Reset()

func (*Pairs) Size Uses

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

func (Pairs) Sort Uses

func (kvs Pairs) Sort()

func (*Pairs) String Uses

func (m *Pairs) String() string

func (Pairs) Swap Uses

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

func (*Pairs) Unmarshal Uses

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

func (*Pairs) XXX_DiscardUnknown Uses

func (m *Pairs) XXX_DiscardUnknown()

func (*Pairs) XXX_Marshal Uses

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

func (*Pairs) XXX_Merge Uses

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

func (*Pairs) XXX_Size Uses

func (m *Pairs) XXX_Size() int

func (*Pairs) XXX_Unmarshal Uses

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

Package kv imports 8 packages (graph) and is imported by 28 packages. Updated 2020-08-15. Refresh now. Tools for package owners.