Versions in this module Expand all Collapse all v0 v0.0.1 Mar 19, 2019 Changes in this version + func NewGRPCClient(addr string, mustConnect bool) *grpcClient + func NewLocalClient(mtx *sync.Mutex, app types.Application) *localClient + func NewSocketClient(addr string, mustConnect bool) *socketClient + type Callback func(*types.Request, *types.Response) + type Client interface + BeginBlockAsync func(types.RequestBeginBlock) *ReqRes + BeginBlockSync func(types.RequestBeginBlock) (*types.ResponseBeginBlock, error) + CheckTxAsync func(tx []byte) *ReqRes + CheckTxSync func(tx []byte) (*types.ResponseCheckTx, error) + CommitAsync func() *ReqRes + CommitSync func() (*types.ResponseCommit, error) + DeliverTxAsync func(tx []byte) *ReqRes + DeliverTxSync func(tx []byte) (*types.ResponseDeliverTx, error) + EchoAsync func(msg string) *ReqRes + EchoSync func(msg string) (*types.ResponseEcho, error) + EndBlockAsync func(types.RequestEndBlock) *ReqRes + EndBlockSync func(types.RequestEndBlock) (*types.ResponseEndBlock, error) + Error func() error + FlushAsync func() *ReqRes + FlushSync func() error + InfoAsync func(types.RequestInfo) *ReqRes + InfoSync func(types.RequestInfo) (*types.ResponseInfo, error) + InitChainAsync func(types.RequestInitChain) *ReqRes + InitChainSync func(types.RequestInitChain) (*types.ResponseInitChain, error) + QueryAsync func(types.RequestQuery) *ReqRes + QuerySync func(types.RequestQuery) (*types.ResponseQuery, error) + SetOptionAsync func(types.RequestSetOption) *ReqRes + SetOptionSync func(types.RequestSetOption) (*types.ResponseSetOption, error) + SetResponseCallback func(Callback) + func NewClient(addr, transport string, mustConnect bool) (client Client, err error) + type ReqRes struct + func NewReqRes(req *types.Request) *ReqRes + func (reqRes *ReqRes) GetCallback() func(*types.Response) + func (reqRes *ReqRes) SetCallback(cb func(res *types.Response)) + func (reqRes *ReqRes) SetDone()