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 (
	// ConfPath dm-job config file path
	ConfPath string

	// Conf config export var
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init int config

Types

type Config

type Config struct {
	// base
	// log
	Xlog *log.Config
	// tracer
	Tracer *trace.Config
	// http
	HTTPServer *bm.ServerConfig
	// databus
	Databus *Databus
	// database
	DB *DB
	// redis
	Redis *Redis
	// memcache
	Memcache *Memcache
}

Config dm-job config struct

type DB

type DB struct {
	DMReader *sql.Config
	DMWriter *sql.Config
}

DB bilibili_dm

type Databus

type Databus struct {
	DMMetaCsmr *databus.Config
}

Databus databus.

type Memcache

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

Memcache dm memcache

type Redis

type Redis struct {
	*redis.Config
	Expire time.Duration
}

Redis dm redis

Jump to

Keyboard shortcuts

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