config

package
v0.0.0-...-5621b75 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 5 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 {
	Debug        bool   `yaml:"debug"`
	DBConnection string `yaml:"db_connection"`
}

func ReadConfig

func ReadConfig(path string) *Config

func ReadConfigReader

func ReadConfigReader(reader io.Reader) *Config

type DB

type DB struct {
	UserID   string `yaml:"user_id"`
	Password string `yaml:"password"`
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Database string `yaml:"database"`
}

Jump to

Keyboard shortcuts

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