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{}
)

Functions

func Init

func Init() (err error)

Init .

Types

type Bfs

type Bfs struct {
	Key     string
	Secret  string
	Host    string
	Timeout int
	OldURL  string
	NewURL  string
}

Bfs represents the bfs config

type Cfg

type Cfg struct {
	Push *PushCfg
	Diff *DiffCfg
	Grpc *GrpcCfg
}

Cfg .

type Config

type Config struct {
	Log          *xlog.Config
	Tracer       *trace.Config
	HTTPServer   *bm.ServerConfig
	HTTPClient   *bm.ClientConfig
	AppresClient *warden.ClientConfig
	MySQL        *sql.Config
	Cfg          *Cfg // push cfg.
	Redis        *redis.Config
	Bfs          *Bfs
}

Config .

type DiffCfg

type DiffCfg struct {
	FreDiff xtime.Duration // diff calculation frequency
	Folder  string
	Retry   string
}

DiffCfg represents the diff calc config

type GrpcCfg

type GrpcCfg struct {
	ApiAppID string
	Method   string
}

GrpcCfg def.

type PushCfg

type PushCfg struct {
	QPS       int            // qps limit
	Operation int            // operation number
	URL       string         // push url
	Timeout   int64          // timeout
	Fre       xtime.Duration // frequency
	Pause     xtime.Duration // pause between call app-resource and broadcast
}

PushCfg def.

Jump to

Keyboard shortcuts

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