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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf = &Config{}
)

Conf global variable.

Functions

func Init

func Init() error

Init int config

Types

type Config

type Config struct {
	// base
	// Tracer tracer
	Tracer *trace.Config
	// Xlog log
	Xlog *log.Config
	// BM
	BM *blademaster.ServerConfig
	// URI uri
	URI *URI
	// Game game
	Game *Game
	// RPC rpc
	RPC *RPC
	// DB db
	DB *DB
	// HTTPClient httpx client
	HTTPClient *httpx.ClientConfig
	// Group group.
	Group *Group
	// DataBus databus
	DataBus *DataBus
	// HBase hbase
	HBase  *HBase
	Encode *Encode
	Sync   *Sync
}

Config struct of conf.

type DB

type DB struct {
	Log *sql.Config
	ASO *sql.Config
}

DB db config.

type DataBus

type DataBus struct {
	AsoBinLog      *databus.Config
	User           *databus.Config
	Log            *databus.Config
	ContactBindLog *databus.Config
	UserLog        *databus.Config
	PwdLog         *databus.Config
	AuthBinLog     *databus.Config
}

DataBus multi databus collection.

type Encode

type Encode struct {
	AesKey string
	Salt   string
}

Encode encode

type Game

type Game struct {
	AppIDs      []int32
	DelCacheURI string
	Client      *httpx.ClientConfig
}

Game game notify conf.

type Group

type Group struct {
	AsoBinLog      *GroupConfig
	User           *GroupConfig
	Log            *GroupConfig
	ContactBindLog *GroupConfig
	PwdLog         *GroupConfig
	AuthBinLog     *GroupConfig
}

Group multi group config collection.

type GroupConfig

type GroupConfig struct {
	// Size merge size
	Size int
	// Num merge goroutine num
	Num int
	// Ticker duration of submit merges when no new message
	Ticker time.Duration
	// Chan size of merge chan and done chan
	Chan int
}

GroupConfig group config.

type HBase

type HBase struct {
	LoginLog *HBaseConfig
	PwdLog   *HBaseConfig
}

HBase multi hbase.

type HBaseConfig

type HBaseConfig struct {
	*hbase.Config
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

HBaseConfig .

type RPC

type RPC struct {
	IdentifyGame *rpc.ClientConfig
}

RPC multi rpc conf collection.

type Sync

type Sync struct {
	SyncPwdID int64
}

Sync config.

type URI

type URI struct {
	SetToken string
	DelCache string
}

URI multi uri.

Jump to

Keyboard shortcuts

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