magicbox

package
v0.0.0-...-72e33f6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUUsage

func GetCPUUsage(ctx context.Context, c dahuarpc.Conn) (int, error)

func GetDeviceClass

func GetDeviceClass(ctx context.Context, c dahuarpc.Conn) (string, error)

func GetDeviceType

func GetDeviceType(ctx context.Context, c dahuarpc.Conn) (string, error)

func GetHardwareVersion

func GetHardwareVersion(ctx context.Context, c dahuarpc.Conn) (string, error)

func GetMachineName

func GetMachineName(ctx context.Context, c dahuarpc.Conn) (string, error)

func GetMarketArea

func GetMarketArea(ctx context.Context, c dahuarpc.Conn) (string, error)

func GetProcessInfo

func GetProcessInfo(ctx context.Context, c dahuarpc.Conn) (string, error)

func GetSerialNo

func GetSerialNo(ctx context.Context, c dahuarpc.Conn) (string, error)

func GetVendor

func GetVendor(ctx context.Context, c dahuarpc.Conn) (string, error)

func ListMethod

func ListMethod(ctx context.Context, c dahuarpc.Conn) ([]string, error)

func NeedReboot

func NeedReboot(ctx context.Context, c dahuarpc.Conn) (int, error)

func Reboot

func Reboot(ctx context.Context, c dahuarpc.Conn) (bool, error)

Types

type MemoryInfo

type MemoryInfo struct {
	Free  dahuarpc.Integer `json:"free"`
	Total dahuarpc.Integer `json:"total"`
}

func GetMemoryInfo

func GetMemoryInfo(ctx context.Context, c dahuarpc.Conn) (MemoryInfo, error)

type SoftwareVersion

type SoftwareVersion struct {
	Build                   string `json:"Build"`
	BuildDate               string `json:"BuildDate"`
	SecurityBaseLineVersion string `json:"SecurityBaseLineVersion"`
	Version                 string `json:"Version"`
	WebVersion              string `json:"WebVersion"`
}

func GetSoftwareVersion

func GetSoftwareVersion(ctx context.Context, c dahuarpc.Conn) (SoftwareVersion, error)

type UpTime

type UpTime struct {
	Last  int64 `json:"last"`
	Total int64 `json:"total"`
}

func GetUpTime

func GetUpTime(ctx context.Context, c dahuarpc.Conn) (UpTime, error)

Jump to

Keyboard shortcuts

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