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: 9 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 init config.

Types

type Config

type Config struct {
	// log
	Xlog *log.Config
	// Tracer tracer
	Tracer *trace.Config
	// HTTP
	BM *bm.ServerConfig
	// Group group
	Group *Group
	//Databus databus
	DataBus *DataBus
}

Config config.

type DataBus

type DataBus struct {
	AsoBinLogSub    *databus.Config
	EncryptTransPub *databus.Config
}

DataBus databus.

type Group

type Group struct {
	AsoBinLog *GroupConfig
}

Group multi group config collection.

type GroupConfig

type GroupConfig struct {
	// Size merge size
	Size int
	// Num merge goroutine num
	Num int
	// Ticker duration of submit merges when no new message
	Ticker time.Duration
	// Chan size of merge chan and done chan
	Chan int
}

GroupConfig group config.

Jump to

Keyboard shortcuts

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