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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfPath string
	Conf     = &Config{}
)

Conf info.

Functions

func Init

func Init() (err error)

Init conf.

Types

type App

type App struct {
	Key    string
	Secret string
}

App for key secret.

type Bfs

type Bfs struct {
	Addr        string
	Bucket      string
	Key         string
	Secret      string
	MaxFileSize int
}

Bfs struct.

type Config

type Config struct {
	// bm
	HTTPServer *blademaster.ServerConfig
	// db
	DB *DB
	// base
	// elk
	XLog *log.Config
	// report log
	LogCli *log.AgentConfig
	// httpClinet
	HTTPClient *HTTPClient
	// tracer
	Tracer *trace.Config
	// host
	Host *Host
	// ArchStatus
	ArchStatus map[string]string
	// Redis
	Redis *Redis
	// Databus
	Env      string
	Consume  bool
	IsTest   bool
	UpSub    *upSub
	ChanSize int64
	Monitor  *Monitor
	// rpc client2
	ArticleRPC *rpc.ClientConfig
	// identify
	App      *blademaster.App
	Memcache *MC
	//API HOST
	API  string
	Live string
	// auth
	Auth *permit.Config
	// hbase
	HBase   *HBaseConfig
	HBase2  *HBaseConfig
	BfsConf *Bfs
	Debug   bool

	TimeConf *TimeConfig
	MailConf *Mail
	// manager log config
	ManagerLog *databus.Config
	//  GRPCClient
	GRPCClient *GRPC
}

Config struct.

type DB

type DB struct {
	// Creative db
	Creative *sql.Config
	Manager  *sql.Config
	Upcrm    *orm.Config
}

DB conf.

type GRPC

type GRPC struct {
	Archive *warden.ClientConfig
	Account *warden.ClientConfig
}

GRPC .

type HBaseConfig

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

HBaseConfig for new hbase client.

type HTTPClient

type HTTPClient struct {
	Normal *blademaster.ClientConfig
	Slow   *blademaster.ClientConfig
}

HTTPClient conf.

type Host

type Host struct {
	API      string
	Live     string
	Search   string
	Manager  string
	Data     string
	Tag      string
	Coverrec string
	Videoup  string
}

Host conf.

type MC

type MC struct {
	UpExpire time.Duration
	Up       *memcache.Config
}

MC memcache

type Mail

type Mail struct {
	Host               string
	Port               int
	Username, Password string
}

Mail 邮件配置

type Monitor

type Monitor struct {
	Host          string
	Moni          string
	UserName      string
	AppSecret     string
	AppToken      string
	IntervalAlarm time.Duration
}

Monitor conf.

type Redis

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

Redis conf.

type TimeConfig

type TimeConfig struct {
	TaskScheduleTime     string // 每天定时检查完成的task情况,format "10:59:59"
	CheckDueScheduleTime string // 每天定时检查快要过期的任务,format "10:59:59"
	RefreshUpRankTime    string // 每天定时检查upRank表的任务,format "10:59:59"
}

TimeConfig 定期任务时间

Jump to

Keyboard shortcuts

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