config

package
v0.0.0-...-6eb6658 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTP struct {
		Host string
		Port string `envconfig:"PORT" default:"8080"`
		Root string `default:"/"`
	}
	Line struct {
		ID       string
		Secret   string
		Callback string
	}
}

Config stores the configuration settings.

func Load

func Load() (Config, error)

Load loads the configuration from the environment.

func MustLoad

func MustLoad() Config

MustLoad loads the configuration from the environmnet and panics if an error is encountered.

Jump to

Keyboard shortcuts

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