config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: MIT Imports: 2 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 {
	BasicAuthPassword string   `envconfig:"basic_auth_password"`
	BasicAuthUsername string   `envconfig:"basic_auth_username"`
	ImageWhitelist    []string `envconfig:"image_whitelist"`
	Port              int      `envconfig:"port" default:"8000"`
}

Config represents configurations of ImageUp

func Load

func Load() (*Config, error)

Load loads configurations from environment variables

Jump to

Keyboard shortcuts

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