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: 11 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 Config

type Config struct {
	// elk
	Log *log.Config
	// http
	BM *bm.ServerConfig
	// ecode
	Ecode *ecode.Config

	HTTPClient *bm.ClientConfig

	Memcache *Memcache

	// orm
	ORM *orm.Config

	Mail *Mail

	Scheduler *Scheduler

	Auth *permit.Config

	Tapd *Tapd
}

Config config set

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 {
	UpdateHookURLCacheTask string
	Active                 bool
}

Scheduler Scheduler.

type Tapd

type Tapd struct {
	CallbackToken string
	UseCache      bool
}

Tapd Tapd.

Jump to

Keyboard shortcuts

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