Versions in this module Expand all Collapse all v0 v0.0.1 May 24, 2022 Changes in this version + type Callback func(*types.Request, *types.Response) + type Client interface + ApplySnapshotChunkAsync func(context.Context, types.RequestApplySnapshotChunk) (*ReqRes, error) + ApplySnapshotChunkSync func(context.Context, types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) + BeginBlockAsync func(context.Context, types.RequestBeginBlock) (*ReqRes, error) + BeginBlockSync func(context.Context, types.RequestBeginBlock) (*types.ResponseBeginBlock, error) + CheckTxAsync func(context.Context, types.RequestCheckTx) (*ReqRes, error) + CheckTxSync func(context.Context, types.RequestCheckTx) (*types.ResponseCheckTx, error) + CommitAsync func(context.Context) (*ReqRes, error) + CommitSync func(context.Context) (*types.ResponseCommit, error) + DeliverTxAsync func(context.Context, types.RequestDeliverTx) (*ReqRes, error) + DeliverTxSync func(context.Context, types.RequestDeliverTx) (*types.ResponseDeliverTx, error) + EchoAsync func(ctx context.Context, msg string) (*ReqRes, error) + EchoSync func(ctx context.Context, msg string) (*types.ResponseEcho, error) + EndBlockAsync func(context.Context, types.RequestEndBlock) (*ReqRes, error) + EndBlockSync func(context.Context, types.RequestEndBlock) (*types.ResponseEndBlock, error) + Error func() error + FlushAsync func(context.Context) (*ReqRes, error) + FlushSync func(context.Context) error + InfoAsync func(context.Context, types.RequestInfo) (*ReqRes, error) + InfoSync func(context.Context, types.RequestInfo) (*types.ResponseInfo, error) + InitChainAsync func(context.Context, types.RequestInitChain) (*ReqRes, error) + InitChainSync func(context.Context, types.RequestInitChain) (*types.ResponseInitChain, error) + ListSnapshotsAsync func(context.Context, types.RequestListSnapshots) (*ReqRes, error) + ListSnapshotsSync func(context.Context, types.RequestListSnapshots) (*types.ResponseListSnapshots, error) + LoadSnapshotChunkAsync func(context.Context, types.RequestLoadSnapshotChunk) (*ReqRes, error) + LoadSnapshotChunkSync func(context.Context, types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) + OfferSnapshotAsync func(context.Context, types.RequestOfferSnapshot) (*ReqRes, error) + OfferSnapshotSync func(context.Context, types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) + QueryAsync func(context.Context, types.RequestQuery) (*ReqRes, error) + QuerySync func(context.Context, types.RequestQuery) (*types.ResponseQuery, error) + SetResponseCallback func(Callback) + func NewClient(addr, transport string, mustConnect bool) (client Client, err error) + func NewGRPCClient(addr string, mustConnect bool) Client + func NewLocalClient(mtx *tmsync.Mutex, app types.Application) Client + func NewSocketClient(addr string, mustConnect bool) Client + type ReqRes struct + func NewReqRes(req *types.Request) *ReqRes + func (r *ReqRes) GetCallback() func(*types.Response) + func (r *ReqRes) InvokeCallback() + func (r *ReqRes) SetCallback(cb func(res *types.Response)) + func (r *ReqRes) SetDone()