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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (err error)

Init init config

Types

type BM

type BM struct {
	Inner *bm.ServerConfig
	Local *bm.ServerConfig
}

BM http

type Config

type Config struct {
	// base
	// db
	DB *DB
	// redis
	Redis *Redis
	// xlog
	Log *log.Config
	// verify
	Verify *verify.Config
	// http
	BM      *BM
	Account *warden.ClientConfig
	// rpc server2
	RPCServer *rpc.ServerConfig
	// tracer
	Tracer *trace.Config
	// file
	FilePath       string
	AnonymFileName string
	// filter ip
	FilterZone []string
	// grpc server
	WardenServer *warden.ServerConfig
	LiveZK       *livezk.Zookeeper
	// Host
	Host *Host
	// AnonymKey
	AnonymKey string
	// new library
	IPv4Name string
	IPv6Name string
	// httpClinet
	HTTPClient *bm.ClientConfig
}

Config service config

var (

	// Conf is global config
	Conf *Config
)

type DB

type DB struct {
	Zlimit *sql.Config
}

DB define MySQL config

type Host

type Host struct {
	Maxmind string
	Bvcip   string
}

Host url

type Redis

type Redis struct {
	Zlimit *Zlimit
}

Redis define Redis config

type Zlimit

type Zlimit struct {
	*redis.Config
	Expire time.Duration
}

Zlimit struct about zlimit

Jump to

Keyboard shortcuts

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