utils

package
v0.0.0-...-1f9c5ee Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetId

func GetId() (uint64, error)

func InitConfig

func InitConfig()

func InitLogger

func InitLogger()

func InitSnowFlake

func InitSnowFlake(machineID uint16)

Types

type Config

type Config struct {
	/*Server*/
	Server Zinterface.ServerI
	Host   string
	Port   int
	Name   string
	/*CZinx*/
	Version         string //zinx版本
	MaxPackageSize  int    //最大包长
	MaxConn         int    //最大连接数
	MaxWorkPoolSize int    //最大工作池数
	MaxPoolTaskSize int    //每个池的最大任务数
	MaxBuffChanSize int    //服务器最大的发送缓冲区
}

Config @Description: zinx的全局配置

var GlobalConfig *Config

Jump to

Keyboard shortcuts

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