config

package
v0.0.0-...-4c53254 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2015 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 Config

type Config struct {
	WebServer struct {
		BaseURL string `json:"base_url"` // http://localhost:8080
	} `json:"web_server"`

	Mysql struct {
		UserName string `json:"username"`
		Password string `json:"password"`
		Host     string `json:"host"`
		Port     int    `json:"port"`
		Database string `json:"database"`
	} `json:"mysql"`

	Weixin struct {
		MP struct {
			AppId     string `json:"appid"`
			AppSecret string `json:"appsecret"`
		} `json:"mp"`
		Open struct {
			App struct {
				AppId     string `json:"appid"`
				AppSecret string `json:"appsecret"`
			} `json:"app"`
			Web struct {
				AppId     string `json:"appid"`
				AppSecret string `json:"appsecret"`
			} `json:"web"`
		} `json:"open"`
	} `json:"weixin"`

	MemcacheServerList []string `json:"memcache_server_list,omitempty"`
	SecurityKey        []byte   `json:"security_key,omitempty"`
	SnowflakeWorkerId  int      `json:"snowflake_workerid"` // SnowflakeWorkerId 不能重复!
}
var ConfigData Config // read only

Jump to

Keyboard shortcuts

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