Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Splits counter type Splits = iota // Segments counter type Segments // Storage counter type Storage // SyncErros counter type SyncErros )
View Source
const ( // Critical severity Critical = iota // Low severity Low )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string
CounterType int
Periodic bool
TaskFunc func(l logging.LoggerInterface, c CounterInterface) error
Period int
MaxErrorsAllowedInPeriod int
Severity int
}
Config counter configuration
type CounterInterface ¶
type CounterInterface interface {
IsHealthy() HealthyResult
NotifyEvent()
Reset(value int) error
GetType() int
Start()
Stop()
}
CounterInterface application counter interface
type HealthDto ¶
type HealthDto struct {
Healthy bool `json:"healthy"`
HealthySince *int64 `json:"healthySince"`
Items []ItemDto `json:"items"`
}
HealthDto struct
type HealthyResult ¶
HealthyResult description
Click to show internal directories.
Click to hide internal directories.