hwid

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	// The Sku string returned by hwid server. It's not the SKU (aka variant).
	Sku string
	// The variant string returned by hwid server. It's not the variant (aka
	// SKU).
	Variant string
}

Data we interested from HWID server.

func GetHwidData

func GetHwidData(ctx context.Context, hwid, secret string) (*Data, error)

GetHwidData gets the hwid data from hwid server.

type HWIDClient

type HWIDClient struct {
	// contains filtered or unexported fields
}

func Init

func Init(ctx context.Context) (*HWIDClient, error)

func (*HWIDClient) QueryHWID

func (c *HWIDClient) QueryHWID(ctx context.Context, hwid string) (*Data, error)

Jump to

Keyboard shortcuts

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