config

package
v0.0.0-...-a0e0d51 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2014 License: Apache-2.0 Imports: 6 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 {
	Addr   string `toml:"bind_addr" env:"MTG_BIND_ADDR"`
	DbType string `toml:"db_type" env:"MTG_DB_TYPE"`
	DbPath string `toml:"db_path" env:"MTG_DB_PATH"`
}

func New

func New() *Config

func (*Config) LoadEnv

func (c *Config) LoadEnv() error

func (*Config) LoadFile

func (c *Config) LoadFile(path string) error

Jump to

Keyboard shortcuts

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