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

View Source
var (

	// Conf of config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init int config

Types

type Bfs

type Bfs struct {
	Timeout     xtime.Duration
	MaxFileSize int
	Bucket      string
	Addr        string
	Key         string
	Secret      string
}

Bfs Bfs.

type Cfg

type Cfg struct {
	// HotCroFre hotword crontab frequency
	HotCroFre string
	// DarkCroFre darkword crontab frequency
	DarkCroFre string
	//RunCront is run crontab
	RunCront bool
}

Cfg def

type Config

type Config struct {
	// base
	// http
	HTTPServer *bm.ServerConfig
	// httpClinet
	HTTPClient *bm.ClientConfig
	// host
	Host *Host
	// auth
	Auth *permit.Config
	// db
	ORM *orm.Config
	// db
	ORMResource *orm.Config
	// log
	Log *log.Config
	// tracer
	Tracer *trace.Config
	//mc
	Memcache *Memcache
	// Bfs
	Bfs *Bfs
	// log
	ManagerReport *databus.Config
	// BroadcastRPC grpc
	PGCRPC *warden.ClientConfig
	// rpc client
	AccountRPC *rpc.ClientConfig
	ArchiveRPC *rpc.ClientConfig
	// Cfg
	Cfg *Cfg
}

Config def.

type Host

type Host struct {
	Manager string
}

Host host

type Memcache

type Memcache struct {
	*memcache.Config
}

Memcache memcache.

Jump to

Keyboard shortcuts

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