config

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 4 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 {
	LogLevel  string `mapstructure:"log_level"`
	Port      int
	SensorPin int `mapstructure:"sensor_pin" validate:"required,gte=0,lte=64"`
}

Config contains all the configuration variables for this service

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig loads the configuration from defaults file

Jump to

Keyboard shortcuts

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