Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCreator ¶
type ClientCreator interface {
// NewABCIClient returns a client for mutating connections (consensus, mempool).
// Calls on it are serialised against each other.
NewABCIClient() (abcicli.Client, error)
// NewReadOnlyABCIClient returns a client for the query connection. Calls on
// it never block consensus, and they do not serialise against each other:
// several may be inside the application at once.
//
// PRECONDITION on any implementation: the application must be goroutine-safe
// for every method this connection reaches — QuerySync, InfoSync, EchoSync.
// An implementation that cannot promise that must serialise the connection
// itself; returning a client that admits concurrent callers into an
// application that is not ready for them is a data race, not a slow query.
NewReadOnlyABCIClient() (abcicli.Client, error)
}
ClientCreator creates ABCI clients for the three Tendermint connections.
func DefaultClientCreator ¶
func DefaultClientCreator(local abci.Application, proxy string, transport, dbDir string) ClientCreator
Returns the local application, or constructs a new one via proxy. This function is meant to work with config fields.
func NewLocalClientCreator ¶
func NewLocalClientCreator(app abci.Application) ClientCreator
Click to show internal directories.
Click to hide internal directories.