brewtracker

package
v0.0.0-...-fdca9b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 10 Imported by: 0

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

func (*BrewTracker) Run

func (bt *BrewTracker) Run() error

Run until canceled.

type Config

type Config struct {
	Brewfather brewfather.Config `mapstructure:"brewfather"`
	Prom       ConfigPrometheus  `mapstructure:"prom"`
}

func ReadInConfig

func ReadInConfig() (*Config, error)

type ConfigPrometheus

type ConfigPrometheus struct {
	Port int `mapstructure:"port"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL