config

package
v0.0.0-...-87ff82d Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 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 {
	Debug        bool              `yaml:"debug"`
	DBConnection string            `yaml:"db_connection"`
	TraderConfig models.TraderGorm `yaml:"trader_config"`
}

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