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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config
	Conf = &Config{}
)

global var

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	// elk
	Log *log.Config
	// Verify
	Verify *verify.Config
	// app
	App *bm.App
	// http client
	HTTPClient httpClient
	// rpc
	ArchiveRPC *rpc.ClientConfig
	// rpc server
	RPCServer *rpc.ServerConfig
	// tracer
	Tracer *trace.Config
	// mc
	Memcache *Memcache
	// Rule
	Rule *Rule
	// Host
	Host *Host
	// HTTPServer
	HTTPServer *bm.ServerConfig
}

Config .

type Host

type Host struct {
	BigDataURI string
	LiveURI    string
	APIURI     string
}

Host hosts.

type Memcache

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

Memcache memcache

type Rule

type Rule struct {
	// region tick.
	TickRegion time.Duration
	// tag tick.
	TickTag time.Duration
	// default num of dynamic archives.
	NumArcs int
	//default num of index dynamic archives.
	NumIndexArcs int
	//min region count.
	MinRegionCount int
}

Rule config.

Jump to

Keyboard shortcuts

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