Documentation ¶
Index ¶
- Variables
- func DecodeObject(data []byte, to interface{}) error
- func EncodeObject(data interface{}) ([]byte, error)
- func GetFileLineCount(filePath string) int
- func PathExists(path string) (bool, error)
- type ClientConfig
- type Config
- type DBConfig
- type GlobalObj
- type HttpConfig
- type Table
- func (s *Table) GetCnt() int
- func (s *Table) GetFloat32(key string, idx int) (float32, error)
- func (s *Table) GetFloat64(key string, idx int) (float64, error)
- func (s *Table) GetInt(key string, idx int) (int, error)
- func (s *Table) GetString(key string, idx int) (string, error)
- func (s *Table) ToString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var IntervalForever int
View Source
var Log *logs.LiLogger
View Source
var Scheduler *liTimer.TimerScheduler
View Source
var XlsxMgr xlsxManager
Functions ¶
func DecodeObject ¶
func EncodeObject ¶
func GetFileLineCount ¶
Types ¶
type ClientConfig ¶
type Config ¶
type Config struct { Host string //当前服务器主机IP TcpPort int //当前服务器主机监听端口号 ServerName string //当前服务器名称 ServerId string //服务器id LogFile string //日志文件名称 Master ClientConfig DataBase DBConfig Http HttpConfig MaxPacketSize uint32 //都需数据包的最大值 MaxConn int //当前服务器主机允许的最大链接个数 ServerWorkerSize uint32 //业务工作Worker池的数量 MaxWorkerTaskLen uint32 //业务工作Worker对应负责的任务队列最大任务存储数量 }
type GlobalObj ¶
type GlobalObj struct {
AppConfig Config
}
存储一切有关Zinx框架的全局参数,供其他模块使用 一些参数也可以通过 用户根据 LiFrame.json来配置
var GlobalObject *GlobalObj
定义一个全局的对象
type HttpConfig ¶
Click to show internal directories.
Click to hide internal directories.