gtgo_sys

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GTGetBaseBoardNo

func GTGetBaseBoardNo() (baseboard_id string)

func GTGetBiosNo

func GTGetBiosNo() (bios_no string)

func GTGetCPUNo

func GTGetCPUNo() (cpu_id string)

func GTGetDeviceSNFromMacOS

func GTGetDeviceSNFromMacOS() string

获取Mac的SN号

func GTGetDiskNo

func GTGetDiskNo() (disk_seria_number string)

func GTGetDiskNoWithMac

func GTGetDiskNoWithMac() string

获取Mac 硬盘序列号

func GTGetHardUUIDFromMacOS

func GTGetHardUUIDFromMacOS() string

获取Mac 系统的 UUID

func GTGetProvisioningHardUUIDFromMacOS

func GTGetProvisioningHardUUIDFromMacOS() string

获取Mac系统的ProvisionUUID

func GTSysUseSignalWaitAppExit

func GTSysUseSignalWaitAppExit(exitHandleFunc func(sigMsg string))

处理程序信号,并且做一些操作,比如:保存状态、保存配置文件

Types

type GTHardInfo

type GTHardInfo struct {
	CPUNumber       string `json:"cpu_number"`
	DiskNumber      string `json:"disk_number"`
	BaseBoardNumber string `json:"base_board_number"`
	BiosNumber      string `json:"bios_number"`
}

func GTGetHardInfo

func GTGetHardInfo() *GTHardInfo

获取自定义唯一硬件号

Jump to

Keyboard shortcuts

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