config

package
v0.0.0-...-d1226e7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SERVICENAME contains a service name prefix which used in ENV variables
	SERVICENAME = "TRANSLATOR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                  string `envconfig:"PORT",default:"8080"`
	LogDir                string `default:"/"`
	YandexDictionaryToken string `required:"true"`
	YandexTranslatorToken string `required:"false"`
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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