config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

@Time: 2020-07-23 15:25 @Auth: xujiang @File: proxy.go @Software: GoLand @Desc: TODO

Index

Constants

View Source
const (
	ERROR_INTERNAL = iota
)

Variables

View Source
var AliMnsConfig struct {
	Key           string `goblet:"key,WC9nreih4P8Mbwwz"`
	Secret        string `goblet:"secret,HVllgK8DF9pvURVnTm0dtbFIqS8e6l"`
	ChargeQueue   string `goblet:"charge_queue,charge"`
	PolicyQueue   string `goblet:"policy_queue,policy"`
	RechargeQueue string `goblet:"recharge_queue,recharge"`
	OwerId        string `goblet:"owerid,50274035"`
	Location      string `goblet:"location,cn-beijing"`
}
View Source
var LoggerConfig loggerConfig
View Source
var ProxyConfig proxyConfig

Functions

This section is empty.

Types

type TConfig

type TConfig struct {
	MongoDbURL                string `goblet:"mongodb_url,localhost" toml:"mongodb_url"`
	MongoDbName               string `goblet:"mongodb_name,apihub" toml:"mongodb_name"`
	MongoIdcheckDbCollection  string `goblet:"mongodb_idcheck_collection,idcheck_new" toml:"mongodb_idcheck_collection"`
	MongoAuthDbCollection     string `goblet:"mongodb_auth_collection,user"`
	MongoKeeperDbCollection   string `goblet:"mongodb_keeper_collection,keeper"`
	MongoEmployeeDbCollection string `goblet:"mongodb_employee_collection,employee"`
	MongoRechargeDbCollection string `goblet:"mongodb_recharge_collection,recharge"`
	MongoAPIDbCollection      string `goblet:"mongodb_api_collection,api"`
	MongoSdkDbCollection      string `goblet:"mongodb_sdk_collection,sdk"`
	MongoSftUserDbCollection  string `goblet:"mongodb_stf_user_collection,sft_user"`
	MongoLogDbCollection      string `goblet:"mongodb_log_collection,log"`
	MongoBlacklistCollection  string `goblet:"mongodb_blacklist_collection,blacklist"`
	MongoApiApplyCollection   string `goblet:"mongbdb_apply_collection,apply"`
	MongoResult               string `goblet:"mongodb_result,result"`
	InfluxDBUrl               string `goblet:"influx_url,http://192.168.1.201:8086"`
	InfluxDBUserName          string `goblet:"influx_name,"`
	InfluxDBPassword          string `goblet:"influx_pwd,"`
	InfluxDBName              string `goblet:"influx_db,rongapi"`
	InfluxDBCollection        string `goblet:"influx_collection,bill"`
	BillExcelPath             string `goblet:"billpath,../www/public/upload/"`
	BillPathReplace           string `goblet:"pathreplace,../www/public"`

	DHFKey      string `goblet:"dhf_key,mingkeshichaungvip"`
	DHFPassword string `goblet:"dhf_password,mingkeshichaung0523@dhf"`

	ShuJiaUrl string `goblet:"shujia_url,localhost" toml:"shujia_url"`

	AlertsValue float64 `goblet:"alert_value,5000"`
}
var Config TConfig

Config 全局配置

func (*TConfig) DialMgo

func (t *TConfig) DialMgo() (session *mgo.Session, err error)

func (*TConfig) MgoAPI

func (t *TConfig) MgoAPI() (c *mgo.Collection, err error)

func (*TConfig) MgoApply

func (t *TConfig) MgoApply() (c *mgo.Collection, helper *mgopool.SessionHelper, err error)

func (*TConfig) MgoAuth

func (t *TConfig) MgoAuth() (c *mgo.Collection, err error)

func (*TConfig) MgoEmployee

func (t *TConfig) MgoEmployee() (c *mgo.Collection, err error)

func (*TConfig) MgoIDCheck

func (t *TConfig) MgoIDCheck() (c *mgo.Collection, err error)

func (*TConfig) MgoKeeper

func (t *TConfig) MgoKeeper() (c *mgo.Collection, helper *mgopool.SessionHelper, err error)

func (*TConfig) MgoLOG

func (t *TConfig) MgoLOG() (c *mgo.Collection, helper *mgopool.SessionHelper, err error)

func (*TConfig) MgoRecharge

func (t *TConfig) MgoRecharge() (c *mgo.Collection, helper *mgopool.SessionHelper, err error)

func (*TConfig) MgoResult

func (t *TConfig) MgoResult() (c *mgo.Collection, err error)

func (*TConfig) MgoSDK

func (t *TConfig) MgoSDK() (c *mgo.Collection, err error)

func (*TConfig) MgoSftUser

func (t *TConfig) MgoSftUser() (c *mgo.Collection, helper *mgopool.SessionHelper, err error)

Jump to

Keyboard shortcuts

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