statics

package
v0.0.0-...-f84f93e Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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