deviceid

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() string

Get returns a unique identifier for this device. The identifier is a random UUID that's stored on disk at $HOME/.lanternsecrets/.deviceid. If unable to read/write to that location, this defaults to the old-style device ID derived from MAC address.

func OldStyleDeviceID

func OldStyleDeviceID() string

OldStyleDeviceID returns the old style of device ID, which is derived from the MAC address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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