Documentation ¶
Index ¶
- func CLIQueryJSONPrint(cdc *codec.Codec, uri string, data []byte, rstTypeFactory func() interface{}) error
- func Load(filepath string, cdc *codec.Codec, factory func() interface{}) (interface{}, error)
- func Save(filepath string, cdc *codec.Codec, state interface{}) error
- func SimpleQueryCmd(use, short, route, store string, nargs int, rstPointer interface{}) func(*codec.Codec) *cobra.Command
- type QueryResolver
- type StoreMap
- type StoreQuerier
- type SubStore
- type Unmarshaler
- type ValueCreator
- type ValueReactor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CLIQueryJSONPrint ¶
Types ¶
type QueryResolver ¶ added in v0.6.3
return query result
func NewQueryResolver ¶ added in v0.6.3
func NewQueryResolver(numArgs int, resolver StoreQuerier) QueryResolver
type StoreMap ¶ added in v0.4.0
func NewStoreMap ¶ added in v0.4.0
type StoreQuerier ¶ added in v0.6.3
query store
type SubStore ¶ added in v0.4.0
type SubStore struct { Store sdk.KVStore Prefix []byte ValCreator ValueCreator Decoder Unmarshaler NoValue bool }
func (SubStore) Iterate ¶ added in v0.4.0
func (s SubStore) Iterate(reactor ValueReactor)
type Unmarshaler ¶ added in v0.4.0
type Unmarshaler = func(bz []byte, rst interface{})
type ValueCreator ¶ added in v0.4.0
type ValueCreator = func() interface{}
type ValueReactor ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.