Documentation ¶
Index ¶
- type BaseMapper
- func (baseMapper *BaseMapper) Copy() *BaseMapper
- func (baseMapper *BaseMapper) DecodeObject(bytes []byte, ptr interface{})
- func (baseMapper *BaseMapper) Del(key []byte)
- func (baseMapper *BaseMapper) EncodeObject(obj interface{}) []byte
- func (baseMapper *BaseMapper) Get(key []byte, ptr interface{}) (exsits bool)
- func (baseMapper *BaseMapper) GetBool(key []byte) (v bool, exsits bool)
- func (baseMapper *BaseMapper) GetCodec() *go_amino.Codec
- func (baseMapper *BaseMapper) GetInt64(key []byte) (v int64, exsits bool)
- func (baseMapper *BaseMapper) GetStore() store.KVStore
- func (baseMapper *BaseMapper) GetStoreKey() store.StoreKey
- func (baseMapper *BaseMapper) GetString(key []byte) (v string, exsits bool)
- func (baseMapper *BaseMapper) Iterator(prefix []byte, process func(needDecodeBytes []byte) (stop bool))
- func (baseMapper *BaseMapper) IteratorWithEnd(start []byte, end []byte, process func(needDecodeBytes []byte) (stop bool))
- func (baseMapper *BaseMapper) IteratorWithKV(prefix []byte, process func(key []byte, value []byte) (stop bool))
- func (baseMapper *BaseMapper) IteratorWithType(prefix []byte, reflectType reflect.Type, ...)
- func (baseMapper *BaseMapper) MapperName() string
- func (baseMapper *BaseMapper) Set(key []byte, val interface{})
- func (baseMapper *BaseMapper) SetCodec(cdc *go_amino.Codec)
- func (baseMapper *BaseMapper) SetStore(store store.KVStore)
- type IMapper
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(cdc *go_amino.Codec, mapperName string) *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) GetBool ¶ added in v0.0.7
func (baseMapper *BaseMapper) GetBool(key []byte) (v bool, exsits bool)
func (*BaseMapper) GetCodec ¶
func (baseMapper *BaseMapper) GetCodec() *go_amino.Codec
func (*BaseMapper) GetInt64 ¶ added in v0.0.7
func (baseMapper *BaseMapper) GetInt64(key []byte) (v int64, exsits bool)
func (*BaseMapper) GetStore ¶
func (baseMapper *BaseMapper) GetStore() store.KVStore
func (*BaseMapper) GetStoreKey ¶
func (baseMapper *BaseMapper) GetStoreKey() store.StoreKey
func (*BaseMapper) GetString ¶ added in v0.0.7
func (baseMapper *BaseMapper) GetString(key []byte) (v string, exsits bool)
func (*BaseMapper) Iterator ¶ added in v0.0.7
func (baseMapper *BaseMapper) Iterator(prefix []byte, process func(needDecodeBytes []byte) (stop bool))
func (*BaseMapper) IteratorWithEnd ¶ added in v0.0.7
func (baseMapper *BaseMapper) IteratorWithEnd(start []byte, end []byte, process func(needDecodeBytes []byte) (stop bool))
func (*BaseMapper) IteratorWithKV ¶ added in v0.1.0
func (baseMapper *BaseMapper) IteratorWithKV(prefix []byte, process func(key []byte, value []byte) (stop bool))
func (*BaseMapper) IteratorWithType ¶ added in v0.1.0
func (*BaseMapper) MapperName ¶ added in v0.0.4
func (baseMapper *BaseMapper) MapperName() string
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)
Click to show internal directories.
Click to hide internal directories.