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 = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type Config

type Config struct {
	// redis
	Redis *Redis
	// show  XLog
	XLog *log.Config
	// tracer
	Tracer *trace.Config
	// bm http
	BM *HTTPServers
	// tick time
	Tick xtime.Duration
	// rpc client
	TagRPC      *rpc.ClientConfig
	ArchiveRPC  *rpc.ClientConfig
	ArchiveRPC2 *rpc.ClientConfig
	// host
	Host *Host
	// httpClinet
	HTTPClient *bm.ClientConfig
	// mc
	Memcache *Memcache
	// db
	MySQL *MySQL
	// infoc2
	FeedInfoc2 *infoc.Config
}

type HTTPServers

type HTTPServers struct {
	Outer *bm.ServerConfig
}

type Host

type Host struct {
	Data    string
	ApiCo   string
	Bangumi string
}

type Memcache

type Memcache struct {
	Archive *struct {
		*memcache.Config
		Expire xtime.Duration
	}
}

type MySQL

type MySQL struct {
	Show *sql.Config
}

type Redis

type Redis struct {
	Stat *struct {
		*redis.Config
		Expire xtime.Duration
	}
}

Jump to

Keyboard shortcuts

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