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
	Redis        *redis.Config
	BFRedis      *redis.Config
	MySQL        *sql.Config
	Ecode        *ecode.Config
	WorkPool     *WorkPoolConfig
	ForwardIndex *ForwardIndexConfig
	LocalCache   *LocalCacheConfig
}

Config .

type ForwardIndexConfig

type ForwardIndexConfig struct {
	LocalPath      string
	RemotePath     string
	MD5Path        string
	Protocol       string
	ReloadDucation xtime.Duration
}

ForwardIndexConfig .

type LocalCacheConfig

type LocalCacheConfig struct {
	L1Tags []string
	Level1 xtime.Duration
	L2Tags []string
	Level2 xtime.Duration
	Level3 xtime.Duration
	MaxAge xtime.Duration
}

LocalCacheConfig .

type WorkPoolConfig

type WorkPoolConfig struct {
	Capacity       uint64
	MaxWorkers     uint64
	MaxIdleWorkers uint64
	MinIdleWorkers uint64
	KeepAlive      xtime.Duration
}

WorkPoolConfig .

Jump to

Keyboard shortcuts

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