kvstore

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: Apache-2.0 Imports: 9 Imported by: ? 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

Index

Constants

View Source
const KvMapperName = "kvmapper"

Variables

This section is empty.

Functions

func MakeKVStoreCodec added in v0.0.2

func MakeKVStoreCodec() *go_amino.Codec

func RegisterCodec added in v0.0.2

func RegisterCodec(cdc *go_amino.Codec)

Types

type KvMapper

type KvMapper struct {
	*mapper.BaseMapper
}

func NewKvMapper

func NewKvMapper(main store.StoreKey) *KvMapper

func (*KvMapper) Copy

func (mapper *KvMapper) Copy() mapper.IMapper

func (*KvMapper) GetKey

func (mapper *KvMapper) GetKey(key string) (v string)

func (*KvMapper) Name

func (mapper *KvMapper) Name() string

func (*KvMapper) SaveKV

func (mapper *KvMapper) SaveKV(key string, value string)

type KvstoreTx

type KvstoreTx struct {
	Key   []byte
	Value []byte
	Bytes []byte
}

func NewKvstoreTx

func NewKvstoreTx(key []byte, value []byte) KvstoreTx

func (KvstoreTx) CalcGas

func (kv KvstoreTx) CalcGas() types.BigInt

func (KvstoreTx) Exec

func (kv KvstoreTx) Exec(ctx context.Context) (result types.Result, crossTxQcps *txs.TxQcp)

func (KvstoreTx) GetGasPayer

func (kv KvstoreTx) GetGasPayer() types.Address

func (KvstoreTx) GetSignData

func (kv KvstoreTx) GetSignData() []byte

func (KvstoreTx) GetSigner

func (kv KvstoreTx) GetSigner() []types.Address

func (KvstoreTx) ValidateData

func (kv KvstoreTx) ValidateData(ctx context.Context) bool

Directories

Path Synopsis
cmd
kvstorecli command
kvstored command

Jump to

Keyboard shortcuts

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