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 config toml file path for reply admin project
	ConfPath string
	// Conf global config instance
	Conf *Config
)

Functions

func Init

func Init() (err error)

Init inti config.

Types

type Config

type Config struct {
	// base
	// ecode
	Ecode *ecode.Config
	// log
	Log *log.Config
	// tracer
	Tracer *trace.Config
	// verify
	Verify *verify.Config
	// http
	HTTPServer *bm.ServerConfig
	// db
	DB *DB
	// memcache
	Memcache *Memcache
	// Redis
	Redis *Redis
	// http client
	HTTPClient        *bm.ClientConfig
	DrawyooHTTPClient *bm.ClientConfig
	// reply
	Reply *Reply
	// host
	Host *Host
	// Stats
	StatTypes     map[string]int32
	Weight        *Weight
	RPCClient2    *RPCClient2
	Databus       *Databus
	ManagerAuth   *bauth.Config
	ManagerReport *databus.Config
	Es            *elastic.Config
	ThumbupClient *warden.ClientConfig
	AccountClient *warden.ClientConfig
}

Config config.

type DB

type DB struct {
	Reply      *sql.Config
	ReplySlave *sql.Config
}

DB db.

type Databus

type Databus struct {
	Event *databus.Config
	Stats *databus.Config
}

Databus databus.

type Host

type Host struct {
	Search string
}

Host host.

type Memcache

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

Memcache memcache.

type RPCClient2

type RPCClient2 struct {
	Account  *rpc.ClientConfig
	Archive  *rpc.ClientConfig
	Article  *rpc.ClientConfig
	Assist   *rpc.ClientConfig
	Thumbup  *rpc.ClientConfig
	Relation *rpc.ClientConfig
}

RPCClient2 rpc client.

type Redis

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

Redis redis.

type Reply

type Reply struct {
	PageNum    int
	PageSize   int
	LikeWeight int32
	HateWeight int32
	// 大忽悠事件删除评论的管理员
	AdminName []string
	// 针对大忽悠的跳转链接
	Link string
	// 针对大忽悠时间的特殊稿件
	Oids []int64
	Tps  []int32
}

Reply reply.

type Stats

type Stats struct {
	*databus.Config
	Type  int32
	Field string
}

Stats stats.

type Weight

type Weight struct {
	Like int32
	Hate int32
}

Weight weight.

Jump to

Keyboard shortcuts

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