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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfPath local config path
	ConfPath string
	// Conf config
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	// base config
	// Elk config
	Log *log.Config
	// http config
	BM *bm.ServerConfig
	// db config
	Mysql *sql.Config
	// mc
	Memcache *Memcache
	// mail
	Mail *Mail
}

Config str

type Mail

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

Mail conf.

type Memcache

type Memcache struct {
	Laser struct {
		*memcache.Config
		LaserExpire time.Duration
	}
}

Memcache conf.

Jump to

Keyboard shortcuts

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