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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Conf Conf.
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init conf.

Types

type Config

type Config struct {
	Log        *log.Config
	HTTPServer *bm.ServerConfig
	Perms      map[string]string
	Verify     *verify.Config
	Auth       *permit.Config
	Tracer     *trace.Config
	Mysql      *sql.Config
	Ecode      *ecode.Config
	HTTPClient *bm.ClientConfig
	ES         *elastic.Config
	Redis      *Redis
	Memcache   *Memcache
	Hosts      *model.DependServiceHost
	Tag        *Tag
	AccClient  *warden.ClientConfig
}

Config config.

type Memcache

type Memcache struct {
	Tag           *memcache.Config
	ChannelExpire time.Duration
}

Memcache Memcache.

type Redis

type Redis struct {
	Tag     *redis.Config
	TagRank *redis.Config
}

Redis Redis.

type Tag

type Tag struct {
	MaxSubmitNum  int
	HotSyncTime   time.Duration
	TraversalTime time.Duration
	SelectTime    int
}

Tag Tag.

Jump to

Keyboard shortcuts

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