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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf .
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	// API host
	Host *Host
	// channal len
	ChanSize    int
	BeginOffset int64
	// log
	Xlog *log.Config
	// http
	BM *bm.ServerConfig
	// tracer
	Tracer *trace.Config
	// tick load pgc
	Tick time.Duration
	// db
	DB *DB
	// redis
	Redis *Redis
	// hbase
	Hbase *hbaseConf
	// http client test
	HTTPClient HTTPClient
	// databus
	ArchiveSub       *databus.Config
	ArchiveResultSub *databus.Config
	VideoupSub       *databus.Config
	ManagerDBSub     *databus.Config
	// ChanSize aid%ChanSize
	ArchiveRPCGroup2 *rpc.ClientConfig
	TagDisConf       *rpc.ClientConfig
	//grpc
	GRPC *GRPC
	// mail
	Mail *mail
}

Config config struct .

type DB

type DB struct {
	Archive *sql.Config
	Manager *sql.Config
}

DB db struct

type GRPC

type GRPC struct {
	AccRPC *warden.ClientConfig
	UpsRPC *warden.ClientConfig
}

GRPC .

type HTTPClient

type HTTPClient struct {
	Read  *bm.ClientConfig
	Write *bm.ClientConfig
}

HTTPClient http client struct

type Host

type Host struct {
	Data    string
	API     string
	Archive string
	Profit  string
	WWW     string
}

Host for httpclient

type MailElemenet

type MailElemenet struct {
	Type string
	Desc string
	Addr []string
}

MailElemenet 邮件接收人配置

type Redis

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

Redis redis struct

Jump to

Keyboard shortcuts

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