config

package
v0.0.0-...-d331868 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Local service host
	LocalHost string `split_words:"true"`
	// Local service port
	LocalPort int `split_words:"true"`
	// Logging level in logger.Level notation
	LogLevel logger.Level `split_words:"true"`
}

Config contains ENV variables

func (*Config) Load

func (c *Config) Load(serviceName string) error

Load settles ENV variables into Config structure

Jump to

Keyboard shortcuts

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