config

package
Version: v0.0.0-...-45692f4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 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
	DataResources map[string]string
	ConnectInfos  *DBConnectInfos
	RedisInfos    *RedisConfig
	OAuthInfos    *OAuthInfos
	LoggerInfos   *LoggerConfig
	Session       *SessionConfig
	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 OAuthInfos

type OAuthInfos struct {
	ClientId     string
	ClientSecret string
}

type RedisConfig

type RedisConfig struct {
	Host string
	Port int
}

type SessionConfig

type SessionConfig struct {
	Secret string
}

Source Files

Jump to

Keyboard shortcuts

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