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: 12 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
	Memcache *Memcache
	DB       *DB
	Ecode    *ecode.Config
	DC       *DC
	Switch   *Switch
}

Config .

type DB

type DB struct {
	Origin *sql.Config
	User   *sql.Config
	Secret *sql.Config
	Auth   *sql.Config
}

DB db config.

type DC

type DC struct {
	Num  int
	Desc string
}

DC data center.

type MC

type MC struct {
	*memcache.Config
	Expire time.Duration
}

MC .

type Memcache

type Memcache struct {
	Auth *MC
}

Memcache memcache config.

type Switch

type Switch struct {
	SupportOld bool
}

Switch .

Jump to

Keyboard shortcuts

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