proxy

package
v0.0.0-...-1abf0d1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

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.TMVersion,
	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, addr, transport, 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"`
}

Metrics contains the prometheus metrics exposed by the proxy package.

func NopMetrics

func NopMetrics() *Metrics

func PrometheusMetrics

func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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