Documentation ¶
Index ¶
- func NewAppConnConsensus(appConn tmspcli.Client) *appConnConsensus
- func NewAppConnMempool(appConn tmspcli.Client) *appConnMempool
- func NewAppConnQuery(appConn tmspcli.Client) *appConnQuery
- func NewMultiAppConn(config cfg.Config, clientCreator ClientCreator, state State, ...) *multiAppConn
- type AppConnConsensus
- type AppConnMempool
- type AppConnQuery
- type AppConns
- type BlockStore
- type ClientCreator
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppConnConsensus ¶
func NewAppConnMempool ¶
func NewAppConnQuery ¶
func NewMultiAppConn ¶
func NewMultiAppConn(config cfg.Config, clientCreator ClientCreator, state State, blockStore BlockStore) *multiAppConn
Make all necessary tmsp connections to the application
Types ¶
type AppConnConsensus ¶
type AppConnConsensus interface { SetResponseCallback(tmspcli.Callback) Error() error InitChainSync(validators []*types.Validator) (err error) BeginBlockSync(height uint64) (err error) AppendTxAsync(tx []byte) *tmspcli.ReqRes EndBlockSync(height uint64) (changedValidators []*types.Validator, err error) CommitSync() (res types.Result) }
type AppConnMempool ¶
type AppConnQuery ¶
type AppConns ¶
type AppConns interface { Mempool() AppConnMempool Consensus() AppConnConsensus Query() AppConnQuery }
Tendermint's interface to the application consists of multiple connections
func NewAppConns ¶
func NewAppConns(config cfg.Config, clientCreator ClientCreator, state State, blockStore BlockStore) AppConns
type BlockStore ¶ added in v0.7.1
type BlockStore interface { }
type ClientCreator ¶
NewTMSPClient returns newly connected client
func DefaultClientCreator ¶
func DefaultClientCreator(config cfg.Config) ClientCreator
func NewLocalClientCreator ¶
func NewLocalClientCreator(app types.Application) ClientCreator
func NewRemoteClientCreator ¶
func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCreator
Click to show internal directories.
Click to hide internal directories.