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 ¶ added in v0.9.2
func NewAppConnMempool ¶ added in v0.9.2
func NewAppConnQuery ¶ added in v0.9.2
func NewMultiAppConn ¶ added in v0.9.2
func NewMultiAppConn(config cfg.Config, clientCreator ClientCreator, state State, blockStore BlockStore) *multiAppConn
Make all necessary tmsp connections to the application
Types ¶
type AppConnConsensus ¶ added in v0.9.2
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 ¶ added in v0.9.2
type AppConnQuery ¶ added in v0.9.2
type AppConns ¶ added in v0.9.2
type AppConns interface { Mempool() AppConnMempool Consensus() AppConnConsensus Query() AppConnQuery }
Tendermint's interface to the application consists of multiple connections
func NewAppConns ¶ added in v0.9.2
func NewAppConns(config cfg.Config, clientCreator ClientCreator, state State, blockStore BlockStore) AppConns
type BlockStore ¶
type BlockStore interface { }
type ClientCreator ¶ added in v0.9.2
NewTMSPClient returns newly connected client
func DefaultClientCreator ¶ added in v0.9.2
func DefaultClientCreator(config cfg.Config) ClientCreator
func NewLocalClientCreator ¶ added in v0.9.2
func NewLocalClientCreator(app types.Application) ClientCreator
func NewRemoteClientCreator ¶ added in v0.9.2
func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCreator
Click to show internal directories.
Click to hide internal directories.