Documentation ¶
Index ¶
Constants ¶
View Source
const Namespace = "brewtracker"
Variables ¶
This section is empty.
Functions ¶
func NewMetrics ¶
func NewMetrics() *metrics
Types ¶
type BrewTracker ¶
type BrewTracker struct { Config *Config Logger *zap.SugaredLogger BrewfatherClient *brewfather.BrewfatherClient // contains filtered or unexported fields }
func NewBrewTracker ¶
func NewBrewTracker() *BrewTracker
type Config ¶
type Config struct { Brewfather brewfather.Config `mapstructure:"brewfather"` Prom ConfigPrometheus `mapstructure:"prom"` }
func ReadInConfig ¶
type ConfigPrometheus ¶
type ConfigPrometheus struct {
Port int `mapstructure:"port"`
}
Click to show internal directories.
Click to hide internal directories.