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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

common + xlog(agent) + trace(better) + http + perf(web代码性能分析) + os.signal监听(stop/reload服务)

Functions

func Init

func Init() error

Init config init.

Types

type Config

type Config struct {
	Xlog          *log.Config
	ManagerReport *databus.Config
	HTTPClient    *bm.ClientConfig
	BM            *bm.ServerConfig
	DB            *db
	Auth          *permit.Config
	Host          host
	HBase         *HBaseConfig
	// redis
	Redis *Redis

	GRPC *GRPC
}

Config config.

type GRPC

type GRPC struct {
	AccRPC *warden.ClientConfig
	UpsRPC *warden.ClientConfig
}

GRPC .

type HBaseConfig

type HBaseConfig struct {
	*hbase.Config
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

HBaseConfig extra hbase config

type Redis

type Redis struct {
	Weight *struct {
		*redis.Config
		Expire time.Duration
	}
}

Redis .

Jump to

Keyboard shortcuts

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