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: 12 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
	// Database
	DB *DB
	// mc
	Memcache *Memcache
	//Databus databus
	DataBus *DataBus
	// DataUtil config
	DatabusUtil *databusutil.Config
	// IncSync
	IncSync *IncSync
	// FullSync
	FullSync *FullSync
	// Scheduler
	Scheduler *Scheduler
}

Config config.

type DB

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

DB db config

type DataBus

type DataBus struct {
	AsoBinLogSub *databus.Config
}

DataBus databus.

type FullSync

type FullSync struct {
	AsoCountryCodeSwitch bool
	AsoAccount           *SyncConf
	AsoAccountInfo       *SyncConf
	AsoAccountReg        *SyncConf
	AsoAccountSns        *SyncConf
	AsoTelBindLog        *SyncConf
}

FullSync full sync

type IncSync

type IncSync struct {
	Switch bool
}

IncSync increment sync

type Memcache

type Memcache struct {
	*memcache.Config
	Expire xtime.Duration
}

Memcache memcache

type Scheduler

type Scheduler struct {
	Switch             bool
	TelDuplicateCron   string
	EmailDuplicateCron string
}

Scheduler scheduler

type SyncConf

type SyncConf struct {
	Switch   bool
	ChanNum  int
	ChanSize int
	Start    int64
	End      int64
	Count    int64
}

SyncConf sync conf

Jump to

Keyboard shortcuts

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