common

package
v0.0.0-...-dfa43ee Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: MIT 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 {
	Address   string  `yaml:"address"`
	Templates string  `yaml:"templates"`
	Connect   Connect `yaml:"connect"`
	Loglevel  string  `yaml:"loglevel"`
}

func ReadConfig

func ReadConfig(path string) (Config, error)

func (*Config) LogLevel

func (c *Config) LogLevel() log.Level

type Connect

type Connect struct {
	Host     string `yaml:"host"`
	Port     uint32 `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

func (*Connect) DSN

func (c *Connect) DSN() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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