config

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(c string)

Types

type Config

type Config struct {
	Database  DB        `ini:"Database"`
	Webserver WebServer `ini:"WebServer"`
	TCPServer TCPServer `ini:"TCPServer"`
}
var CFG *Config

type DB

type DB struct {
	Server string `ini:"Server"`
	Port   int    `ini:"Port"`
	DBName string `ini:"DBName"`
}

type TCPServer

type TCPServer struct {
	Addr string `ini:"Address"`
	Port int    `ini:"Port"`
}

type WebServer

type WebServer struct {
	Host string `ini:"Hostname"`
	Port int    `ini:"Port"`
}

Jump to

Keyboard shortcuts

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