system

package
v0.0.0-...-66ffdac Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectTask

func CollectTask()

CollectTask 启动收集主机信息任务

func GetServerInfo

func GetServerInfo(c *gin.Context)

GetServerInfo 获取服务器信息的接口

func TimeCost

func TimeCost(start time.Time, body *ResponseBody)

TimeCost web函数执行用时统计方法

Types

type ResponseBody

type ResponseBody struct {
	Code     int         `json:"code"`
	Duration string      `json:"duration"`
	Data     interface{} `json:"data"`
	Message  string      `json:"message"`
}

ResponseBody 结构体

func ServerInfo

func ServerInfo() *ResponseBody

ServerInfo 获取服务器信息

Jump to

Keyboard shortcuts

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