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
	Log *log.Config
	// Tracer tracer
	Tracer *trace.Config
	// DB db
	DB *DB
	// BM
	BM *httpx.ServerConfig
	// FullTask
	FullTask *FullTask
	// IncTask
	IncTask *IncTask
	// WeChat
	WeChat *WeChat
	// data fix switch
	DataFixSwitch     bool
	IncrDataFixSwitch bool
	// httpClient
	HTTPClient *bm.ClientConfig
	// DuplicateTask
	DuplicateTask          *DuplicateTask
	FixEmailVerifiedSwitch bool
}

Config config.

type DB

type DB struct {
	User   *sql.Config
	Origin *sql.Config
	Secret *sql.Config
}

DB db config.

type DuplicateTask

type DuplicateTask struct {
	Switch        bool
	DuplicateCron string
}

DuplicateTask check duplicatet ask

type FullTask

type FullTask struct {
	Switch         bool
	Step           int64
	AccountEnd     int64
	AccountInfoEnd int64
	AccountSnsEnd  int64
	CronFullStr    string
}

FullTask full task compare

type IncTask

type IncTask struct {
	Switch       bool
	StartTime    string
	StepDuration time.Duration
	CronIncStr   string
}

IncTask incr task compare

type WeChat

type WeChat struct {
	Token    string
	Secret   string
	Username string
}

WeChat wechat basic info

Jump to

Keyboard shortcuts

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