pkg

package
v0.0.0-...-8d5c4f1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check_homeservice_status

func Check_homeservice_status(ii int, time_set int, homeservice_data *Homeservices_slice)

func Check_iotservice_realtime_status

func Check_iotservice_realtime_status(ii int, time_set int, iotservice_data *IoTservices_slice)

func Parser_disk_space

func Parser_disk_space(ii int, disk *Disk_slice)

func Parser_load_average

func Parser_load_average() [3]string

func Parser_top_cpu

func Parser_top_cpu() [7]string

func Parser_top_ram

func Parser_top_ram() [7]string

func Parser_uptime_users

func Parser_uptime_users() [2]string

func Percent_to_byte_disk

func Percent_to_byte_disk(disk_d uint64) string

func Percent_to_color_charge

func Percent_to_color_charge(charge_v string) string

func Percent_to_color_disk

func Percent_to_color_disk(disk_v uint64) string

Types

type Disk_slice

type Disk_slice struct {
	Disk_data []struct {
		Name         string `json:"Name"`
		Path         string `json:"Path"`
		Total_Space  uint64 `json:"Total_Space"`
		Free_Space   uint64 `json:"Free_Space"`
		Free_Space_P uint64 `json:"Free_Space_Precent"`
	} `json:"j_Disk"`
}

func Parser_disk_info

func Parser_disk_info() Disk_slice

type Homeservices

type Homeservices struct {
	Ip        string `json:"Ip"`
	Service   string `json:"Service"`
	Port      string `json:"Port"`
	Other_cfg string `json:"Other_cfg"`
	Status    string `json:"Status"`
}

type Homeservices_slice

type Homeservices_slice struct {
	Homeservices []Homeservices `json:"j_Homeservices"`
}

func Parser_homeservices

func Parser_homeservices() Homeservices_slice

type IoTservices

type IoTservices struct {
	Ip        string `json:"Ip"`
	Service   string `json:"Service"`
	Other_cfg string `json:"Other_cfg"`
	Status    string `json:"POWER"`
}

type IoTservices_slice

type IoTservices_slice struct {
	IoTservices []IoTservices `json:"j_IoTservices"`
}

func Parser_iotservice

func Parser_iotservice() IoTservices_slice

type Ram_s

type Ram_s struct {
	Total_mem string
	Free_mem  string
	Mem_p     uint64
}
var (
	Ram_info Ram_s
)

func Parser_ram

func Parser_ram() Ram_s

type UpsInfo_slice

type UpsInfo_slice struct {
	Battery struct {
		Charge  string `json:"charge"`
		Runtime string `json:"runtime"`
		Type    string `json:"type"`
		Voltage string `json:"voltage"`
	} `json:"battery"`
	Input struct {
		Voltage string `json:"voltage"`
	} `json:"input"`
	Upsfullinfo Upsfullinfo_s `json:"ups"`
}

func Parser_upsinfo

func Parser_upsinfo() UpsInfo_slice

type Upsfullinfo_s

type Upsfullinfo_s struct {
	Beeper struct {
		Status string `json:"status"`
	} `json:"beeper"`
	Load   string `json:"load"`
	Mfr    string `json:"mfr"`
	Model  string `json:"model"`
	Serial string `json:"serial"`
	Status string `json:"status"`
	Test   struct {
		Result string `json:"result"`
	} `json:"test"`
}

type Wifi_info_s

type Wifi_info_s struct {
	SHOW    string
	URL     string
	SSID    string
	WIFIPWD string
}
var (
	Wifi_info Wifi_info_s
)

func Parser_wifiqrcode

func Parser_wifiqrcode(SHOW string, SSID string, ENC string, WIFIPWD string) Wifi_info_s

Jump to

Keyboard shortcuts

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