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: 10 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 BM

type BM struct {
	Inner *bm.ServerConfig
	Local *bm.ServerConfig
}

BM http server config

type Config

type Config struct {
	// common conf
	// log
	Xlog *log.Config
	// Tracer tracer
	Tracer *trace.Config
	// http
	BM *BM
	// Database
	DB *DB
	// Step
	StepGroup *StepGroup
	// DataSwitch
	DataSwitch *DataSwitch
	// Group group
	Group *Group
	//Databus databus
	DataBus *DataBus
}

Config config.

type DB

type DB struct {
	OriginDB  *sql.Config
	EncryptDB *sql.Config
}

DB db config

type DataBus

type DataBus struct {
	AsoBinLogSub *databus.Config
}

DataBus databus.

type DataSwitch

type DataSwitch struct {
	Full, Inc bool
}

DataSwitch data trans swtich

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.

type Step

type Step struct {
	Start, End, Inc, Limit int64
}

Step data step

type StepGroup

type StepGroup struct {
	Group1 *Step
	Group2 *Step
	Group3 *Step
	Group4 *Step
}

StepGroup group

Jump to

Keyboard shortcuts

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