config

package
v0.0.0-...-33d56e0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Env struct {
	ListenAddress string `envconfig:"LISTEN_ADDRESS" default:":80"`
	SitePassword  string `envconfig:"SITE_PASSWORD" required:"true"`
	DatabasePath  string `envconfig:"DB_PATH" default:"parts.db"`
	MouserAPIKey  string `envconfig:"MOUSER_API_KEY"`
	DigikeyAPIKey string `envconfig:"DIGIKEY_API_KEY"`
}

Env holds the configuration from the environment

Functions

func Process

func Process()

Process parses the environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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