system

package module
v0.0.0-...-4fd775f Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppMemoryInfo

func AppMemoryInfo() map[string]interface{}

程序内存信息

func AppPath

func AppPath() string

获取当前执行程序所在的绝对路径

func CheckPollCode

func CheckPollCode(code, key string) (bool, error)

*

  • 验证注册码
  • @param code 注册码
  • @param key 干扰密钥
  • @return

func CheckPollCodeAndSerial

func CheckPollCodeAndSerial(code, serial, key string) (bool, error)

*

  • 根据序列号验证注册码
  • @param code 注册码
  • @param serial 序列号
  • @param key 干扰密钥
  • @return

func CreatePollCode

func CreatePollCode(key string) string

*

  • 取符合本机的注册码
  • @param key 干扰密钥
  • @return

func GetBaseBoardID

func GetBaseBoardID() string

GetBaseBoardID 获取主板的id

func GetCPUID

func GetCPUID() string

GetCPUID 获取cpuid

func GetCpuInfo

func GetCpuInfo() map[string]interface{}

取CPU占用信息

func GetCpuPercent

func GetCpuPercent() float64

func GetDiskFree

func GetDiskFree(p int) uint64

func GetDiskInfo

func GetDiskInfo() []map[string]interface{}

取磁盘信息

func GetDiskPercent

func GetDiskPercent(p int) float64

func GetDiskTotal

func GetDiskTotal(p int) uint64

func GetMemInfo

func GetMemInfo() map[string]interface{}

取内存信息

func GetMemPercent

func GetMemPercent() float64

func GetOsInfo

func GetOsInfo() map[string]interface{}

取系统信息

func GetSystemSerial

func GetSystemSerial() string

取系统序列号

Types

This section is empty.

Jump to

Keyboard shortcuts

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