config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 1 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 {
	MonoAccountID   string `env:"SHELF_MONO_ACCOUNT_ID,required"`
	MonoAPIKey      string `env:"SHELF_MONO_API_KEY,required"`
	DBConnString    string `env:"SHELF_DB_CONN,required"`
	MonoBaseURL     string `env:"SHELF_MONO_BASE_URL,required"`
	WebAPIPort      string `env:"SHELF_API_PORT" envDefault:"8080"`
	CORSHost        string `env:"SHELF_CORS_HOST,required"`
	EnableImportJob bool   `env:"SHELF_MONO_ENABLE_IMPORT" envDefault:"false"`
}

Config describes app configuration parameters.

func FromEnv

func FromEnv() (Config, error)

FromEnv parses configuration based on declared environment variables.

Jump to

Keyboard shortcuts

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