settings

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSettings

type AppSettings struct {
	TemperatureUnits    string `json:"temperatureUnits"`
	AuthSecret          string `json:"authSecret"`
	BrewfatherAPIUserID string `json:"brewfatherApiUserId,omitempty"`
	BrewfatherAPIKey    string `json:"brewfatherApiKey,omitempty"`
	BrewfatherLogURL    string `json:"brewfatherLogUrl,omitempty"`
	InfluxDBURL         string `json:"influxDbUrl,omitempty"`
	InfluxDBReadToken   string `json:"influxDbReadToken,omitempty"`
	StatsDAddress       string `json:"statsDAddress,omitempty"`
}

type Repo

type Repo interface {
	Get() (*Settings, error)
	Save(c *Settings) error
}

type Settings

type Settings struct {
	AppSettings
	auth.Credentials
	ModTime time.Time `json:"modTime"`
}

Jump to

Keyboard shortcuts

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