sys

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeInterfaceGet

func NodeInterfaceGet() []string

func ServerStatUpdate

func ServerStatUpdate(s Server) error

func StatUpdate

func StatUpdate(cnt, data int64)

func StatUserGet

func StatUserGet() (int, int)

func StatUserUpdate

func StatUserUpdate(user int, usergroup int)

func SysConfigUpdate

func SysConfigUpdate(cfg *Config) error

Types

type Config

type Config struct {
	AuditCnt  int    `json:"auditcnt"`
	LogDays   int    `json:"logdays"`
	AlarmCnt  int    `json:"alarmcnt"`
	NtpServer string `json:"ntpserver"`
}

func SysConfigGet

func SysConfigGet() *Config

type Server

type Server struct {
	TotalSvc int `json:"total_svc"`
	TotalCnt int `json:"total_cnt"`
	AliveCnt int `json:"alive_cnt"`
}

func ServerStatGet

func ServerStatGet() Server

type Stat

type Stat struct {
	TodayCnt  int64
	TotalCnt  int64
	TodayData int64
	TotalData int64
}

func StatGet

func StatGet() Stat

type SysInfo

type SysInfo struct {
	CPU    int `json:"cpu"`
	Memory int `json:"mem"`
	Disk   int `json:"disk"`
}

func NodeCtrlGet

func NodeCtrlGet() SysInfo

func NodeProxyGet

func NodeProxyGet() SysInfo

Jump to

Keyboard shortcuts

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