package
0.19.0-rc4
Repository: https://github.com/eeonevision/tendermint.git
Documentation: pkg.go.dev

# Functions

DefaultConfig returns a config with values that have been tested and produce desirable results.
NewMetric returns a trust metric with the default configuration.
NewMetricWithConfig returns a trust metric with a custom configuration.
NewTestTicker returns our ticker used within test routines.
NewTicker returns a normal time.Ticker wrapped to meet our interface.
NewTrustMetricStore returns a store that saves data to the DB and uses the config when creating new trust metrics.

# Structs

MetricHistoryJSON - history data necessary to save the trust metric.
The ticker used during testing that provides manual control over time intervals.
Ticker is just a wrap around time.Ticker that allows it to meet the requirements of our interface.
TrustMetric - keeps track of peer reliability See tendermint/docs/architecture/adr-006-trust-metric.md for details.
TrustMetricConfig - Configures the weight functions and time intervals for the metric.
TrustMetricStore - Manages all trust metrics for peers.

# Interfaces

MetricTicker provides a single ticker interface for the trust metric.