machine

package
v0.0.0-...-3371691 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomID

func CustomID(cid string) error

CustomID sets the machine id to a custom value

func ID

func ID() (string, error)

ID returns the platform specific machine id of the current host OS. If ID cannot be generated, a random value is suggested.

func ProtectedID

func ProtectedID(key string) (string, error)

ProtectedID returns a hashed version of the machine id using a fixed, application-specific key.

func RandomID

func RandomID() string

RandomID creates a random id

Types

This section is empty.

Jump to

Keyboard shortcuts

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