config

package
v0.0.0-...-24a0202 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2015 License: MIT Imports: 4 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 {
	Http         *HttpConfig
	ConnectInfos *DBConnectInfos
	RedisInfos   *RedisConfig
	LoggerInfos  *LoggerConfig
	TmpDir       string
	BaseURL      string
}

func Init

func Init() *Config

type DBConnectInfos

type DBConnectInfos struct {
	Dialect      string
	URL          string
	MaxIdelConns int
	MaxOpenConns int
}

type HttpConfig

type HttpConfig struct {
	Port int
}

type LoggerConfig

type LoggerConfig struct {
	Path string
}

type RedisConfig

type RedisConfig struct {
	Host string
	Port int
}

Jump to

Keyboard shortcuts

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