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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() error

Init init conf

Types

type BerSerkerKey

type BerSerkerKey struct {
	Appkey string
	Secret string
}

BerSerkerKey conf

type BerSerkerKeyList

type BerSerkerKeyList struct {
	YYC *BerSerkerKey
	HSC *BerSerkerKey
	LZQ *BerSerkerKey
	LJ  *BerSerkerKey
	DW  *BerSerkerKey
	HM  *BerSerkerKey
}

BerSerkerKeyList conf

type Berserker

type Berserker struct {
	Key *BerSerkerKeyList
	API *BerserkerAPI
}

Berserker conf

type BerserkerAPI

type BerserkerAPI struct {
	Rankdaily        string
	Userdmg          string
	Upuserdmg        string
	Operaonce        string
	Userbasic        string
	Upmid            string
	VideoView        string
	UserProfile      string
	UserProfileBuvid string
}

BerserkerAPI conf

type Config

type Config struct {
	Log          *log.Config
	BM           *HTTPGeneral
	Verify       *verify.Config
	Tracer       *trace.Config
	Redis        *redis.Config
	BfRedis      *redis.Config
	Memcache     *memcache.Config
	MySQL        *sql.Config
	MySQLCms     *sql.Config
	MySQLOffline *sql.Config
	Ecode        *ecode.Config
	Scheduler    *Scheduler
	GRPCClient   map[string]*GRPCConf
	//berserker
	Berserker     *Berserker
	TagMap        *TagMap
	Databus       map[string]*databus.Config
	Mail          *Mail
	URLs          map[string]string
	Download      *Download
	FTP           *FTP
	VST           *Vst
	Path          map[string]string
	SubBvcControl *Sub
}

Config .

type Databus

type Databus struct {
	Video    *databus.Config
	VideoRep *databus.Config
	BvcSub   *databus.Config
}

Databus .

type Download

type Download struct {
	File string
}

Download .

type FTP

type FTP struct {
	Addr       string
	User       string
	Password   string
	RemotePath map[string]string
	Timeout    xtime.Duration
	LocalPath  map[string]string
}

FTP FTP.

type GRPCConf

type GRPCConf struct {
	WardenConf *warden.ClientConfig
	Addr       string
}

GRPCConf .

type HTTPGeneral

type HTTPGeneral struct {
	Server *bm.ServerConfig
	Client *bm.ClientConfig
}

HTTPGeneral conf

type Mail

type Mail struct {
	Host     string
	Port     int
	From     string
	Password string
	To       []string
}

Mail ...

type Scheduler

type Scheduler struct {
	CheckVideo2ES         string
	SyncUserDmg           string
	Test                  string
	SyncUpUserDmg         string
	CheckVideo            string
	CheckVideoSt          string
	CheckVideoStHv        string
	CheckVideoTag         string
	CheckTag              string
	SyncVideoOper         string
	DeliveryNewVideoToCms string
	SyncUsrSta            string
	SyncSearch            string
	VideoViewHistory      string
	SysMsgTask            string
	UserProfileBbq        string
	TransToReview         string
	TransToCheckBack      string
}

Scheduler .

type Sub

type Sub struct {
	Control int8
}

Sub ...

type TagMap

type TagMap struct {
	TagTidMap    map[string]string
	TagSubTidMap map[string]string
}

TagMap ...

type Vst

type Vst struct {
	TmpStatus int64
}

Vst ...

Jump to

Keyboard shortcuts

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