conf

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf global variable.

Functions

func AlipayBiliPriv

func AlipayBiliPriv() (key string)

AlipayBiliPriv bilibili generate rsa private key

func AlipayPub

func AlipayPub() (key string)

AlipayPub .

func Init

func Init() (err error)

Init init conf.

func RsaPriv

func RsaPriv() (key string)

RsaPriv .

func RsaPub

func RsaPub() (key string)

RsaPub .

Types

type Account

type Account struct {
	RemoveLoginLogCIDR []string
}

Account is

type BFS

type BFS struct {
	Timeout     time.Duration
	MaxFileSize int
	URL         string
	Method      string
	Bucket      string
	Key         string
	Secret      string
}

BFS bfs config

type Config

type Config struct {
	Xlog                 *log.Config
	Tracer               *trace.Config
	BM                   *HTTPServers
	AuthN                *auth.Config
	Verify               *verify.Config
	RPCClient2           *RPC
	HTTPClient           *HTTPClient
	App                  *bm.App
	Ecode                *ecode.Config
	Antispam             *antispam.Config
	BatchRelAntispam     *antispam.Config
	SMSAntispam          *antispam.Config
	FaceAntispam         *antispam.Config
	VIPAntispam          *antispam.Config
	Host                 *Host
	BFS                  *BFS
	FaceBFS              *BFS
	AccMemcache          *memcache.Config
	AccRedis             *redis.Config
	Realname             *Realname
	Supervisor           *supervisor.Config
	NickFreeAppKeys      map[string]string
	Report               *databus.Config
	Switch               *Switch
	Vipproperty          *VipProperty
	AccountNotify        *databus.Config
	CardClient           *warden.ClientConfig
	Geetest              *Geetest
	Account              *Account
	VipThirdVerifyConfig *vipverify.Config
	VipClient            *warden.ClientConfig
	CouponClient         *warden.ClientConfig
}

Config struct of conf.

type Geetest

type Geetest struct {
	PC GeetestConfig
	H5 GeetestConfig
}

Geetest is

type GeetestConfig

type GeetestConfig struct {
	CaptchaID  string
	PrivateKEY string
}

GeetestConfig conf.

type HTTPClient

type HTTPClient struct {
	Normal *bm.ClientConfig
	Slow   *bm.ClientConfig
}

HTTPClient conf.

type HTTPServers

type HTTPServers struct {
	Inner *bm.ServerConfig
}

HTTPServers Http Servers

type Host

type Host struct {
	AccCom      string
	AccCo       string
	Passport    string
	API         string
	Vip         string
	WWW         string
	Search      string
	CM          string
	PassportCom string
}

Host host.

type RPC

type RPC struct {
	Relation *rpc.ClientConfig
	Member   *rpc.ClientConfig
	Account  *rpc.ClientConfig
	Vip      *rpc.ClientConfig
	Usersuit *rpc.ClientConfig
	Archive  *rpc.ClientConfig
	UP       *rpc.ClientConfig
	Article  *rpc.ClientConfig
	PassPort *rpc.ClientConfig
	Coin     *rpc.ClientConfig
	Location *rpc.ClientConfig
	Secure   *rpc.ClientConfig
	Filter   *rpc.ClientConfig
	Coupon   *rpc.ClientConfig
	Point    *rpc.ClientConfig
	Resource *rpc.ClientConfig
}

RPC config

type Realname

type Realname struct {
	DataDir                 string
	ImageExpire             time.Duration
	AlipayAntispamTTL       int32
	AlipayAntispamThreshold int
	Geetest                 *struct {
		RegisterURL string
		ValidateURL string
		CaptchaID   string
		PrivateKey  string
	}
	Alipay *struct {
		Gateway string
		AppID   string
	}
	Channel []*struct {
		Name string
		Flag bool
	}
}

Realname .

type Switch

type Switch struct {
	UpdatePropertyPhoneRequired bool
}

Switch is.

type VipProperty

type VipProperty struct {
	CodeOpenwhiteIPMap         map[string][]string
	OfficialMid                int64
	OAuthClient                *bm.ClientConfig
	EleOAuthURI                string
	EleConsumerKey             string
	EleOAuthCallBackURI        string
	ActivityURI                string
	ActStartTime               int64
	ActEndTime                 int64
	AssociateWhiteIPMap        map[string][]string
	AssociateWhiteMidMap       []int64
	AssociateWhiteOutOpenIDMap []string
}

VipProperty .

Jump to

Keyboard shortcuts

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