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
	Ecode    *ecode.Config
	RPCConf  *warden.ServerConfig
	WorkPool *WorkPoolConfig
	JPush    *JPushConfig
	Infoc    *infoc.Config
}

Config .

type JPushConfig

type JPushConfig struct {
	AppKey         string
	SecretKey      string
	Timeout        xtime.Duration
	ApnsProduction bool
}

JPushConfig 极光推送配置

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