Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct { Version string `json:"Version" ` StartTime string `json:"StartTime" ` UpTime string `json:"UpTime"` PanicNum int32 `json:"PanicNum" ` GoroutineNum int `json:"GoroutineNum" ` CPUNum int `json:"CPUNum" ` Mem *runtime.MemStats `json:"Mem" ` LoginStatus string `json:"LoginStatus" ` OnLineCount int `json:"OnLineCount" ` //在线人数 }
应用信息,包括应用版本信息,上次启动时间,运行时间,panic次数
func GetAppInfo ¶
func GetAppInfo() *AppInfo
type DocumentInfo ¶
type DocumentInfo struct {
Send, Read, Do, Receive int
}
type HostInfo ¶
type HostInfo struct { CPU int `json:"CPU" bson:"CPU"` Memory int `json:"Memory" bson:"Memory"` HD int `json:"HD" bson:"HD"` }
func GetHostInfo ¶
func GetHostInfo() *HostInfo
type SystemInfo ¶
type SystemInfo struct { Host *HostInfo //DataBase *DataBaseInfo AppInfo *AppInfo DocumentInfo *DocumentInfo }
系统信息,分为三部分:宿主信息(操作系统信息),应用信息()
func GetSysmtemInfo ¶
func GetSysmtemInfo() *SystemInfo
Click to show internal directories.
Click to hide internal directories.