config

package
v0.0.0-...-90b39c7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetOrDefault

func SetOrDefault(conf *AppConfig)

Types

type AppConfig

type AppConfig struct {
	Port           string `yaml:"port"`
	DBName         string `yaml:"dbName"`
	DBConn         string `yaml:"dbConn"`
	AuthIssuer     string `yaml:"authIssuer"`
	AuthSigningKey string `yaml:"authSigningKey"`
}

func FromEnv

func FromEnv() (*AppConfig, error)

func FromYaml

func FromYaml(data []byte) (*AppConfig, error)

Jump to

Keyboard shortcuts

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