kv

package
v0.33.0-dev1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type KI64Pair

type KI64Pair struct {
	Key                  []byte   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                int64    `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Define these here for compatibility but use tmlibs/common.KI64Pair.

func NewPopulatedKI64Pair

func NewPopulatedKI64Pair(r randyTypes, easy bool) *KI64Pair

func (*KI64Pair) Descriptor

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

func (*KI64Pair) Equal

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

func (*KI64Pair) GetKey

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

func (*KI64Pair) GetValue

func (m *KI64Pair) GetValue() int64

func (*KI64Pair) Marshal

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

func (*KI64Pair) MarshalJSON

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

func (*KI64Pair) MarshalTo

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

func (*KI64Pair) MarshalToSizedBuffer

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

func (*KI64Pair) ProtoMessage

func (*KI64Pair) ProtoMessage()

func (*KI64Pair) Reset

func (m *KI64Pair) Reset()

func (*KI64Pair) Size

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

func (*KI64Pair) String

func (m *KI64Pair) String() string

func (*KI64Pair) Unmarshal

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

func (*KI64Pair) UnmarshalJSON

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

func (*KI64Pair) XXX_DiscardUnknown

func (m *KI64Pair) XXX_DiscardUnknown()

func (*KI64Pair) XXX_Marshal

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

func (*KI64Pair) XXX_Merge

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

func (*KI64Pair) XXX_Size

func (m *KI64Pair) XXX_Size() int

func (*KI64Pair) XXX_Unmarshal

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

type KI64Pairs

type KI64Pairs []KI64Pair

func (KI64Pairs) Len

func (kvs KI64Pairs) Len() int

Sorting

func (KI64Pairs) Less

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

func (KI64Pairs) Sort

func (kvs KI64Pairs) Sort()

func (KI64Pairs) Swap

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

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

Define these here for compatibility but use tmlibs/common.KVPair.

func NewPopulatedPair

func NewPopulatedPair(r randyTypes, easy bool) *Pair

func (*Pair) Descriptor

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

func (*Pair) Equal

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

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) MarshalJSON

func (r *Pair) MarshalJSON() ([]byte, 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) UnmarshalJSON

func (r *Pair) UnmarshalJSON(b []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 []Pair

func (Pairs) Len

func (kvs Pairs) Len() int

Sorting

func (Pairs) Less

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

func (Pairs) Sort

func (kvs Pairs) Sort()

func (Pairs) Swap

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

Jump to

Keyboard shortcuts

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