proxy

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2026 License: Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL