config

package
v0.0.0-...-b4e7280 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: MIT Imports: 2 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 {
	DB DBConfig `toml:"database"`
}

Config represents application configuration.

func NewConfig

func NewConfig(path string, appMode string) (Config, error)

NewConfig return configuration struct.

type DBConfig

type DBConfig struct {
	User     string `toml:"user"`
	Password string
	Host     string `toml:"host"`
	Port     int    `toml:"port"`
	Name     string `toml:"name"`
}

DBConfig represents database connection configuration information.

Jump to

Keyboard shortcuts

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