Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MetricsSubsystem is a subsystem shared by all metrics exposed by this // package. MetricsSubsystem = "abci_connection" )
Variables ¶
View Source
var RequestInfo = abci.RequestInfo{ Version: version.TMCoreSemVer, BlockVersion: version.BlockProtocol, P2PVersion: version.P2PProtocol, AbciVersion: version.ABCIVersion, }
RequestInfo contains all the information for sending the abci.RequestInfo message during handshake with the app. It contains only compile-time version information.
Functions ¶
func ClientFactory ¶
func ClientFactory(logger log.Logger, cfg config.AbciConfig, dbDir string) (abciclient.Client, io.Closer, error)
ClientFactory returns a client object, which will create a local client if addr is one of: 'kvstore', 'persistent_kvstore', 'e2e', or 'noop', otherwise - a remote client.
The Closer is a noop except for persistent_kvstore applications, which will clean up the store.
func New ¶
func New(client abciclient.Client, logger log.Logger, metrics *Metrics) abciclient.Client
New creates a proxy application interface.
Types ¶
type Metrics ¶
type Metrics struct { // Timing for each ABCI method. MethodTiming metrics.Histogram `metrics_bucketsizes:".0001,.0004,.002,.009,.02,.1,.65,2,6,25" metrics_labels:"method, type, success"` }
Metrics contains the prometheus metrics exposed by the proxy package.
func NopMetrics ¶
func NopMetrics() *Metrics
func PrometheusMetrics ¶
Click to show internal directories.
Click to hide internal directories.