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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

global conf

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	App           *bm.App
	Log           *log.Config
	Tracer        *trace.Config
	Ecode         *ecode.Config
	Job           *Job
	Info          *HBaseConfig
	HisSub        *databus.Config
	ServiceHisSub *databus.Config
	Sub           *databus.Config
	BM            *bm.ServerConfig
	Redis         *redis.Config
	Merge         *pipeline.Config
	TiDB          *tidb.Config
	LongTiDB      *tidb.Config
}

Config service conf

type HBaseConfig

type HBaseConfig struct {
	*hbase.Config
	WriteTimeout xtime.Duration
	ReadTimeout  xtime.Duration
}

HBaseConfig .

type Job

type Job struct {
	URL             string
	Client          *bm.ClientConfig
	Expire          xtime.Duration
	Max             int
	Batch           int
	ServiceBatch    int
	DeleteLimit     int
	DeleteStartHour int
	DeleteEndHour   int
	DeleteStep      xtime.Duration
	// 用户最近播放列表长度
	CacheLen  int
	QPSLimit  int
	IgnoreMsg bool
	RetryTime xtime.Duration
}

Job job.

Jump to

Keyboard shortcuts

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