common

package
v0.0.0-...-5e12377 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *logging.Logger

Types

type Config

type Config struct {
	Database DbConfig
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func (*Config) ConnectString

func (config *Config) ConnectString() string

type DbConfig

type DbConfig struct {
	Name     string `toml:"name"`
	Port     int    `toml:"port"`
	Username string `toml:"username"`
	Password string `toml:"password"`
}

Jump to

Keyboard shortcuts

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