utils

package
v0.0.0-...-5b63d95 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalObj

type GlobalObj struct {
	/*
		Server
	*/
	TcpServer tiface.IServer //当前的全局Server对象
	Host      string         //当前服务器主机IP
	TcpPort   int            //当前服务器主机监听端口号
	Name      string         //当前服务器名称

	/*
		Tigerkin
	*/
	Version       string //当前Tigerkin版本号
	MaxPacketSize uint32 //当前框架数据包的最大值
	MaxConn       int    //当前服务器主机允许的最大链接个数

	WorkerPoolSize   uint32 //业务工作Worker池的goroutine数量
	MaxWorkerTaskLen uint32 //每个worker对应的消息队列中任务数量的最大值

	MaxMsgChanLen uint32 //SendBuffMsg发送消息的缓冲最大长度

	ConfFilePath string // 配置文件路径
}
var GlobalObject *GlobalObj

定义一个全局的对象

func (*GlobalObj) Reload

func (g *GlobalObj) Reload()

读取用户的配置文件

Jump to

Keyboard shortcuts

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