config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SwitchBotOpenToken string `long:"open-token" description:"SwitchBot Open Token" required:"true" env:"SWITCHBOT_OPEN_TOKEN"`
	SwitchBotSecretKey string `long:"secret-key" description:"SwitchBot Secret Key" required:"true" env:"SWITCHBOT_SECRET_KEY"`
	Prefix             string `long:"prefix" description:"Metric key prefix" default:"switchbot" env:"PREFIX"`
	Tempfile           string `long:"tempfile" description:"Temp filename" env:"TEMPFILE"`
}

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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