Documentation ¶
Index ¶
- Constants
- func GetKVCmd(cdc *wire.Codec) *cobra.Command
- func NewGetKVReq(r *http.Request) (*getKVReq, error)
- func NewSendKVReq(r *http.Request) (*sendKVReq, error)
- func QueryKRequestHandlerFnGet(storeName string, cdc *wire.Codec, cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cdc *wire.Codec, r *mux.Router)
- func SendKVCmd(cdc *wire.Codec) *cobra.Command
- type GetKVOption
- type KVStub
- func (kv KVStub) CustomerQuery(ctx ctx.Context, route []string, req abci.RequestQuery) (res []byte, err types.Error)
- func (kv KVStub) EndBlockNotify(ctx context.Context)
- func (kv KVStub) Name() string
- func (kv KVStub) RegisterCdc(cdc *go_amino.Codec)
- func (kv KVStub) ResultNotify(ctx context.Context, txQcpResult interface{}) *types.Result
- func (kv KVStub) StartX(base *baseapp.QstarsBaseApp) error
- type KvstoreTx
- func (kv KvstoreTx) CalcGas() types.BigInt
- func (kv KvstoreTx) Exec(ctx context.Context) (result types.Result, crossTxQcps *txs.TxQcp)
- func (kv KvstoreTx) GetGasPayer() types.Address
- func (kv KvstoreTx) GetSignData() []byte
- func (kv KvstoreTx) GetSigner() []types.Address
- func (kv KvstoreTx) ValidateData(ctx context.Context) error
- type ResultGetKV
- type ResultSendKV
- type SendKVOption
- type SetGetKVOption
- type SetSendKVOption
Constants ¶
View Source
const KvMapperName = "kv"
Variables ¶
This section is empty.
Functions ¶
func NewGetKVReq ¶
func NewSendKVReq ¶
func QueryKRequestHandlerFnGet ¶
func QueryKRequestHandlerFnGet( storeName string, cdc *wire.Codec, cliCtx context.CLIContext, ) http.HandlerFunc
query accountREST Handler
Types ¶
type GetKVOption ¶
type GetKVOption struct {
// contains filtered or unexported fields
}
GetKVOption option param ofr get kv
func NewGetKVOption ¶
func NewGetKVOption(fs ...SetGetKVOption) (*GetKVOption, error)
NewGetKVOption new and set option param
type KVStub ¶
type KVStub struct {
KvTx KvstoreTx
}
func (KVStub) CustomerQuery ¶
func (KVStub) EndBlockNotify ¶
func (KVStub) RegisterCdc ¶
func (KVStub) ResultNotify ¶
type KvstoreTx ¶
func NewKvstoreTx ¶
func NewKvstoreTxHandler ¶
func NewKvstoreTxHandler() KvstoreTx
func (KvstoreTx) GetGasPayer ¶
func (KvstoreTx) GetSignData ¶
type ResultGetKV ¶
type ResultGetKV struct {
Value string `json:"value"`
}
ResultGetKV result of get kv
func GetKV ¶
func GetKV(cdc *wire.Codec, key string, opt *GetKVOption) (*ResultGetKV, error)
GetKV process of get kv
type ResultSendKV ¶
type ResultSendKV struct {
Hash string `json:"hash"`
}
ResultSendKV result of send kv
func SendKV ¶
func SendKV(cdc *wire.Codec, privateKey, key, value string, option *SendKVOption) (*ResultSendKV, error)
SendKV process of set kv
type SendKVOption ¶
type SendKVOption struct {
// contains filtered or unexported fields
}
SendKVOption option param ofr send kv
func NewSendKVOption ¶
func NewSendKVOption(fs ...SetSendKVOption) (*SendKVOption, error)
NewSendKVOption new and set option param
type SetGetKVOption ¶
type SetGetKVOption func(*GetKVOption) error
func GetKVOptionChainID ¶
func GetKVOptionChainID(chainID string) SetGetKVOption
GetKVOptionChainID set chain id
type SetSendKVOption ¶
type SetSendKVOption func(*SendKVOption) error
func SendKVOptionChainID ¶
func SendKVOptionChainID(chainID string) SetSendKVOption
SendKVOptionChainID set chain id
func SendKVOptionSequence ¶
func SendKVOptionSequence(sequence string) SetSendKVOption
SendKVOptionSequence
Click to show internal directories.
Click to hide internal directories.