api

package
v0.0.0-...-1d92d00 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SentEncHostInfo

func SentEncHostInfo(remoteHost string, iface string, uuid string, Passwd string) error

func SentEncProbeData

func SentEncProbeData(remoteHost string, iface string, uuid string, Passwd string) error

func SentHostInfo

func SentHostInfo(remoteHost string, iface string, uuid string) error

func SentProbeData

func SentProbeData(remoteHost string, iface string, uuid string) error

Types

type HostInfo

type HostInfo struct {
	Arch      string `json:"arch"`
	OSInfo    string `json:"os_info"`
	Hostname  string `json:"hostname"`
	KernelVer string `json:"kernel_ver"`
	OSVersion string `json:"os_version"`
	Platform  string `json:"platform"`
	Family    string `json:"family"`
	Uuid      string `json:"uuid"`
}

type Probe

type Probe struct {
	CPULoad   []float64 `json:"cpu_load"`
	MemUsage  float64   `json:"mem_usage"`
	MemUsed   uint64    `json:"mem_used"`
	MemTotal  uint64    `json:"mem_total"`
	NetName   string    `json:"net_name"`
	BytesRecv uint64    `json:"bytes_recv"`
	BytesSent uint64    `json:"bytes_sent"`
	LocalIP   string    `json:"local_ip"`
	Uuid      string    `json:"uuid"`
}

Jump to

Keyboard shortcuts

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