Documentation ¶ Index ¶ type Data func GetHwidData(ctx context.Context, hwid, secret string) (*Data, error) type HWIDClient func Init(ctx context.Context) (*HWIDClient, error) func (c *HWIDClient) QueryHWID(ctx context.Context, hwid string) (*Data, error) 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) Source Files ¶ View all Source files hwid.go Click to show internal directories. Click to hide internal directories.