mapper

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 3 modules, 11 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMapper

type BaseMapper struct {
	// contains filtered or unexported fields
}

func NewBaseMapper

func NewBaseMapper(key store.StoreKey) *BaseMapper

func (*BaseMapper) Copy

func (baseMapper *BaseMapper) Copy() *BaseMapper

func (*BaseMapper) DecodeObject

func (baseMapper *BaseMapper) DecodeObject(bytes []byte, ptr interface{})

func (*BaseMapper) Del added in v0.0.2

func (baseMapper *BaseMapper) Del(key []byte)

func (*BaseMapper) EncodeObject

func (baseMapper *BaseMapper) EncodeObject(obj interface{}) []byte

func (*BaseMapper) Get

func (baseMapper *BaseMapper) Get(key []byte, ptr interface{}) (exsits bool)

func (*BaseMapper) GetCodec

func (baseMapper *BaseMapper) GetCodec() *go_amino.Codec

func (*BaseMapper) GetStore

func (baseMapper *BaseMapper) GetStore() store.KVStore

func (*BaseMapper) GetStoreKey

func (baseMapper *BaseMapper) GetStoreKey() store.StoreKey

func (*BaseMapper) Set

func (baseMapper *BaseMapper) Set(key []byte, val interface{})

func (*BaseMapper) SetCodec

func (baseMapper *BaseMapper) SetCodec(cdc *go_amino.Codec)

func (*BaseMapper) SetStore

func (baseMapper *BaseMapper) SetStore(store store.KVStore)

type IMapper

type IMapper interface {
	Name() string
	Copy() IMapper
	GetStoreKey() store.StoreKey

	Get(key []byte, ptr interface{}) (exsits bool)
	Set(key []byte, val interface{})
	Del(key []byte)

	GetCodec() *go_amino.Codec
	SetCodec(cdc *go_amino.Codec)
	SetStore(store store.KVStore)
	GetStore() store.KVStore
}

Jump to

Keyboard shortcuts

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