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 global variable.

Functions

func Init

func Init() (err error)

Types

type ApiPath

type ApiPath struct {
	FollowersNotify string
}

ApiPath api path collections

type ClearPath

type ClearPath struct {
	Following string
	Follower  string
	Stat      string
}

ClearPath clear cache path

type Config

type Config struct {
	// base
	// app
	App *bm.App
	// Env
	Env string
	// goroutine sleep
	Tick time.Duration
	// log
	Xlog *log.Config
	// db
	Mysql *sql.Config
	// databus
	DataBus *databus.Config
	// httpClinet
	HTTPClient *bm.ClientConfig
	// clearPath
	ClearPath *ClearPath
	// apiPath
	ApiPath *ApiPath
	// sms monitor
	Sms *Sms
	// redis
	// Redis    *Redis
	RelRedis *Redis
	Memcache *Memcache
	Relation *Relation
	// bm
	BM *bm.ServerConfig
}

Config struct of conf.

type Memcache

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

type Redis

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

type Relation

type Relation struct {
}

Relation relation related config

type Sms

type Sms struct {
	Phone string
	Token string
}

Sms is sms monitor config.

Jump to

Keyboard shortcuts

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