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 (

	// Conf config
	Conf = &Config{}
)

global var

Functions

func Init

func Init() error

Init init conf

Types

type BiliHub

type BiliHub struct {
	Host           string
	HostName       string
	Username       string
	Password       string
	MerlinPub      string
	SharePub       string
	MachineTagPri  string
	SupportNetWork []string
	SuperOwner     []string
}

BiliHub BiliHub.

type Config

type Config struct {
	Version string `toml:"version"`
	// base
	// elk
	Log *log.Config
	// http
	BM *bm.ServerConfig
	// ecode
	Ecode *ecode.Config

	HTTPClient *bm.ClientConfig

	Memcache *Memcache

	// orm
	ORM *orm.Config

	Paas *model.PaasConf

	ServiceTree *model.TreeConf

	Mail *Mail

	Scheduler *Scheduler

	Auth *permit.Config

	BiliHub *BiliHub

	DeviceFarm *DeviceFarm

	WeChat *WeChat
}

Config config set

type DeviceFarm

type DeviceFarm struct {
	HostList       []string
	SuperOwner     []string
	ApplyMonthTime int
}

DeviceFarm DeviceFarm

type Mail

type Mail struct {
	Host        string
	Port        int
	Username    string
	Password    string
	NoticeOwner []string
}

Mail mail

type Memcache

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

Memcache memcache.

type Scheduler

type Scheduler struct {
	GetExpiredMachinesTime              string
	SendTaskMailMachinesWillExpiredTime string
	DeleteExpiredMachinesInTask         string
	CheckMachinesStatusInTask           string
	UpdateMobileDeviceInTask            string
	UpdateSnapshotStatusInDoing         string
	Active                              bool
	ExpiredDate                         int
}

Scheduler scheduler

type WeChat

type WeChat struct {
	WeChatHost       string
	WeChatDeviceFarm *WeChatDeviceFarm
}

WeChat WeChat config

type WeChatDeviceFarm

type WeChatDeviceFarm struct {
	ChatID      string
	MsgType     string
	Safe        int
	SendMessage bool
}

WeChatDeviceFarm WeChatDeviceFarm.

Jump to

Keyboard shortcuts

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