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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf info.

Functions

func Init

func Init() (err error)

Init conf.

Types

type Config

type Config struct {
	// base
	// tick
	Tick time.Duration
	// max assist count
	MaxAssCnt  int
	MaxTypeCnt int64
	// app
	App *bm.App
	// host
	Host *Host
	// elk
	Xlog *log.Config
	// tracer
	Tracer *trace.Config
	BM     *bm.ServerConfig
	// rpc server2
	RPCServer *rpc.ServerConfig
	// http client
	HTTPClient *HTTPClient
	// db
	DB *DB
	// ecode
	Ecode *ecode.Config
	// rpc client2
	ArchiveRPC *rpc.ClientConfig
	// mc
	Memcache *Memcache
	// redis
	Redis *Redis
	// databus sub
	RelationSub *databus.Config
	AccClient   *warden.ClientConfig
}

Config struct.

type DB

type DB struct {
	Assist *sql.Config
}

DB conf.

type HTTPClient

type HTTPClient struct {
	Normal *bm.ClientConfig
	Slow   *bm.ClientConfig
}

HTTPClient conf.

type HTTPServers

type HTTPServers struct {
	Inner *bm.ServerConfig
}

HTTPServers Http Servers

type Host

type Host struct {
	Message string
	Account string
}

Host conf.

type Memcache

type Memcache struct {
	Assist *struct {
		*memcache.Config
		SubmitExpire time.Duration
	}
}

Memcache conf

type Redis

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

Redis conf

Jump to

Keyboard shortcuts

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