Documentation
¶
Index ¶
- Variables
- type Config
- type Group
- type Metrics
- func (m Metrics) ClearController(labels []string)
- func (m Metrics) ClearHashInitial(labels []string)
- func (m Metrics) ClearHashRecovery(labels []string)
- func (m Metrics) ClearHashStable(labels []string)
- func (m Metrics) UpdateBalance(balance float64, labels []string)
- func (m Metrics) UpdateController(controller float64, labels []string)
- func (m Metrics) UpdateHashInitial(hash float64, labels []string)
- func (m Metrics) UpdateHashRecovery(hash float64, labels []string)
- func (m Metrics) UpdateHashStable(hash float64, labels []string)
- type Split
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MinBalance uint64 = 31.95 * 1e9 ExpectedStatuses = []string{"active_online", "active_offline"} WithdrawalCredentialsCodes = []int64{1} )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func GetMetricsInstance ¶
func (Metrics) ClearController ¶ added in v0.1.1
func (Metrics) ClearHashInitial ¶ added in v0.1.1
func (Metrics) ClearHashRecovery ¶ added in v0.1.1
func (Metrics) ClearHashStable ¶ added in v0.1.1
func (Metrics) UpdateBalance ¶
func (Metrics) UpdateController ¶
func (Metrics) UpdateHashInitial ¶ added in v0.1.0
func (Metrics) UpdateHashRecovery ¶ added in v0.1.0
func (Metrics) UpdateHashStable ¶ added in v0.1.0
type State ¶
func NewState ¶
func NewState(log logrus.FieldLogger) *State
func (*State) UpdateSplit ¶
Click to show internal directories.
Click to hide internal directories.