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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	// base
	// log
	Log *log.Config
	App *bm.App
	// favorite config
	Fav      *Fav
	Platform *Platform
	// BM blademaster
	BM *bm.ServerConfig
	// redis
	Redis *Redis
	// memcache
	Memcache *Memcache
	// databus
	JobDatabus *databus.Config
	// Verify
	Verify *verify.Config
	// Auth
	Auth *auth.Config
	// rpc client
	RPCClient2 *RPC
	// tracer
	Tracer *trace.Config
	// http client
	HTTPClient *bm.ClientConfig
	// ecode
	Ecode *ecode.Config
	// Antispam
	Antispam *antispam.Config
	// Supervisior
	Supervisor *supervisor.Config
	// collector
	Infoc2 *infoc.Config
}

Config is favorte conf

var (

	// Conf Config
	Conf *Config
)

type Fav

type Fav struct {
	// the max of the num of favorite folders
	MaxFolders  int
	MaxPagesize int
	MaxNameLen  int
	MaxDescLen  int
	// the num of operation
	MaxOperationNum int
	// the num of default favorite
	DefaultFolderLimit int
	NormalFolderLimit  int
	// cache expire
	Expire time.Duration
}

Fav config

type Memcache

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

Memcache memcache conf

type Platform

type Platform struct {
	MaxFolders int
	MaxNameLen int
	MaxDescLen int
}

Platform config

type RPC

type RPC struct {
	Archive   *rpc.ClientConfig
	Favorite  *rpc.ClientConfig
	FavClient *warden.ClientConfig
}

RPC contain all rpc conf

type Redis

type Redis struct {
	*redis.Config
	Expire      time.Duration
	CoverExpire time.Duration
}

Redis redis conf

Jump to

Keyboard shortcuts

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