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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	Log       *log.Config
	BM        *bm.ServerConfig
	Verify    *verify.Config
	Tracer    *trace.Config
	Redis     *redis.Config
	Memcache  *memcache.Config
	MySQL     *sql.Config
	Ecode     *ecode.Config
	LiveRpc   map[string]*liverpc.ClientConfig
	DataBus   *DataBus
	GeeTest   *GeeTestConfig
	LogStream *LogStream
}

Config .

type DataBus

type DataBus struct {
	CaptchaAnti *databus.Config
}

DataBus ...

type GeeTestConfig

type GeeTestConfig struct {
	On    int64      //是否开启极验
	Id    string     //公钥
	Key   string     //秘钥
	Qps   int64      //限制qps
	Slice int64      //限制qps的key分几份
	Get   HttpMethod //get配置
	Post  HttpMethod //post配置
}

GeeTestConfig ...

type HttpMethod

type HttpMethod struct {
	Timeout   int64
	KeepAlive int64
}

HttpMethod config

type LogStream

type LogStream struct {
	LogId    string
	Token    string
	Address  string
	Capacity int
	Timeout  time.Duration
}

LogStream config

Jump to

Keyboard shortcuts

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