Documentation ¶
Index ¶
- func Check_homeservice_status(ii int, time_set int, homeservice_data *Homeservices_slice)
- func Check_iotservice_realtime_status(ii int, time_set int, iotservice_data *IoTservices_slice)
- func Parser_disk_space(ii int, disk *Disk_slice)
- func Parser_load_average() [3]string
- func Parser_top_cpu() [7]string
- func Parser_top_ram() [7]string
- func Parser_uptime_users() [2]string
- func Percent_to_byte_disk(disk_d uint64) string
- func Percent_to_color_charge(charge_v string) string
- func Percent_to_color_disk(disk_v uint64) string
- type Disk_slice
- type Homeservices
- type Homeservices_slice
- type IoTservices
- type IoTservices_slice
- type Ram_s
- type UpsInfo_slice
- type Upsfullinfo_s
- type Wifi_info_s
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_color_charge ¶
func Percent_to_color_disk ¶
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_slice ¶
type Homeservices_slice struct {
Homeservices []Homeservices `json:"j_Homeservices"`
}
func Parser_homeservices ¶
func Parser_homeservices() Homeservices_slice
type IoTservices ¶
type IoTservices_slice ¶
type IoTservices_slice struct {
IoTservices []IoTservices `json:"j_IoTservices"`
}
func Parser_iotservice ¶
func Parser_iotservice() IoTservices_slice
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 Wifi_info_s ¶
var (
Wifi_info Wifi_info_s
)
func Parser_wifiqrcode ¶
func Parser_wifiqrcode(SHOW string, SSID string, ENC string, WIFIPWD string) Wifi_info_s
Click to show internal directories.
Click to hide internal directories.