config

package module
v0.0.0-...-a296e7f Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-3.0 Imports: 3 Imported by: 6 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-config

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	//系统配置
	Port        string
	UseBindata  bool
	CookieStore string
	SessionName string
	MPVerify    string
	Uploads     string

	//数据库配置
	DBSource string
	DBType   string
	LogMode  bool
	LogFile  string

	// Elastic配置
	ElasticEnable       bool
	ElasticHostURL      string
	ElasticIndexName    string
	ElasticSQLLogName   string
	ElasticErrorLogName string
	ElasticInfoLogName  string
	ElasticLoginLogName string
	ElasticWxMsgLogName string
	ElasticUser         string
	ElasticPassword     string
	ElasticSourceHost   string

	//nsq消息队列配置
	NSQServerIP string
	NSQLookupd  string
	NSQTopic    string

	//Redis
	RedisHost string
	RedisPass string
	RedisType string

	//微信配置
	WechatInfo *Weixin

	//Oauth认证
	OauthClientID     string
	OauthClientSecret string
	OauthRedirectURI  string
	OauthServer       string
}

Configuration 系统配置

var (
	Config *Configuration
)

Config 全局配置

type Weixin

type Weixin struct {
	APPID          string
	SECRET         string
	TOKEN          string
	EncodingAESKey string
	Domain         string
	RedisHost      string
	RedisPass      string
	RedisType      string
	Validate       bool
}

Weixin 微信公众号基本信息

Jump to

Keyboard shortcuts

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