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 global variable.

Functions

func Init

func Init() error

Init int config

Types

type Config

type Config struct {
	// base
	// log
	Xlog *log.Config
	// tracer
	Tracer *trace.Config
	// identify
	Identify *verify.Config
	// BM
	BM *blademaster.ServerConfig
	// Switch switch
	Switch *Switch
	// RPCServer rpc server2
	RPCServer *rpc.ServerConfig
	// HBase
	HBase *HBase
}

Config struct of conf.

type HBase

type HBase struct {
	FaceApply *HBaseConfig
	LoginLog  *HBaseConfig
	PwdLog    *HBaseConfig
}

HBase multi hbase.

type HBaseConfig

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

HBaseConfig ...

type Switch

type Switch struct {
	LoginLogHBase bool
	RPC           bool
}

Switch switch.

Jump to

Keyboard shortcuts

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