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 Compare

type Compare struct {
	Cloud2Local *CompareConfig
	Local2Cloud *CompareConfig
}

Compare compare

type CompareConfig

type CompareConfig struct {
	On    bool
	Debug bool

	OffsetFilePath string
	UseOldOffset   bool

	End bool

	StartTime     string
	EndTime       string
	DelayDuration time.Duration
	StepDuration  time.Duration
	LoopDuration  time.Duration

	BatchSize           int
	BatchMissRetryCount int

	Fix bool
}

CompareConfig compare proc config.

type Config

type Config struct {
	// log
	Xlog *log.Config
	// Tracer tracer
	Tracer *trace.Config
	// DB db
	DB *DB
	// Compare compare
	Compare *Compare
	// InitCloud init cloud.
	InitCloud *InitCloud
	// BM
	BM *httpx.ServerConfig
}

Config config.

type DB

type DB struct {
	Local *sql.Config
	Cloud *sql.Config
}

DB db config.

type InitCloud

type InitCloud struct {
	OffsetFilePath string
	UseOldOffset   bool

	Start, End int64

	Batch int

	Sleep time.Duration
}

InitCloud init cloud conf.

Jump to

Keyboard shortcuts

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