Documentation ¶
Index ¶
Constants ¶
View Source
const (
AppName = "metric"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type METRIC_PROVIDER ¶
type METRIC_PROVIDER string
const (
METRIC_PROVIDER_PROMETHEUS METRIC_PROVIDER = "prometheus"
)
type Metric ¶
type Metric struct { Enable bool `json:"enable" yaml:"enable" toml:"enable" env:"METRIC_ENABLE"` Provider METRIC_PROVIDER `toml:"provider" json:"provider" yaml:"provider" env:"METRIC_PROVIDER"` Endpoint string `toml:"endpoint" json:"endpoint" yaml:"endpoint" env:"METRIC_ENDPOINT"` }
func NewDefaultMetric ¶
func NewDefaultMetric() *Metric
Click to show internal directories.
Click to hide internal directories.