config

package
v0.0.0-...-f92b78c Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 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 AppConfig

type AppConfig struct {
	Server    ServerConfig `yaml:"server"`
	DbConfigs []DbConfig   `yaml:"dbs"`
}

AppConfig is the main config file structure

func GetConfig

func GetConfig() AppConfig

GetConfig loads the app config

type DbConfig

type DbConfig struct {
	ConnectionName string `yaml:"name"`
	Host           string
	DbName         string
	Port           string
	User           string
	Pass           string
}

DbConfig is a single DataBase connection config

type ServerConfig

type ServerConfig struct {
	Port uint
}

ServerConfig represents the Server configuration

Jump to

Keyboard shortcuts

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