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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf conf
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf

Types

type Antispam

type Antispam struct {
	Redis  *redis.Config
	Switch bool
	Second int
	N      int
	Hour   int
	M      int
}

Antispam .

type Auth

type Auth struct {
	AppKey    string
	AppSercet string
	BfsBucket *BfsBucket
}

Auth .

type Bfs

type Bfs struct {
	BfsURL          string
	WaterMarkURL    string
	ImageGenURL     string
	TimeOut         xtime.Duration
	WmTimeOut       xtime.Duration
	ImageGenTimeOut xtime.Duration
}

Bfs .

type BfsBucket

type BfsBucket struct {
	Bucket string
	Key    string
	Sercet string
}

BfsBucket .

type Config

type Config struct {
	XLog *log.Config
	// BM
	BM *bm.ServerConfig
	// ecode
	Ecode *ecode.Config
	// orm
	ORM *orm.Config
	// bfs
	Bfs       *Bfs
	BfsBucket *BfsBucket
	Auths     []*Auth
	// Antispam redis
	Antispam *antispam.Config
	// AuthN
	AuthInter *auth.Config
	// VerifyN
	Verify *verify.Config
	// AuthN outside
	AuthOut *auth.Config
}

Config config

Jump to

Keyboard shortcuts

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