configure

package
v0.0.0-...-2f8f7b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MasterCfg   *MasterNode
	GateCfg     *GateNode
	GameCfg     *GameNode
	WorldCfg    *WorldNode
	LoginCfg    *LoginNode
	ChatCfg     *ChatNode
	GateUserCfg *GateUserNode
	MysqlCfg    *MysqlConf
	RedisCfg    *RedisConf
	LogCfg      *LogConf
	GlobalCfg   *GlobalConf
)

定义需要的配置节点

View Source
var IniConfig *iniConfig
View Source
var JsonConfig *jsonConfig

Functions

func LoadIniConfig

func LoadIniConfig(cfg string) error

Types

type ChatNode

type ChatNode struct {
	NetNode
}

type GameNode

type GameNode struct {
	NetNode
}

type GateNode

type GateNode struct {
	NetNode
}

type GateUserNode

type GateUserNode struct {
	NetNode
}

type GlobalConf

type GlobalConf struct {
	MaxOnLine int
	Dev       int
}

type LogConf

type LogConf struct {
	Level    int
	Path     string
	RollType int
	RollTime string
	RollSize int
}

type LoginNode

type LoginNode struct {
	NetNode
}

type MasterNode

type MasterNode struct {
	NetNode
}

type MysqlConf

type MysqlConf struct {
	IP       string
	Port     int
	User     string
	Password string
	DataBase string
}

type NetNode

type NetNode struct {
	NodeId     int
	NodeName   string
	NodeIP     string
	NodePort   int
	MaxConnect int
}

type RedisConf

type RedisConf struct {
	IP       string
	Port     int
	Password string
	DB       int
}

type WorldNode

type WorldNode struct {
	NetNode
}

Jump to

Keyboard shortcuts

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