mac

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientID

func CreateClientID(opts ...plugin.Option) plugin.ClientID

CreateClientID create MAC

func NetworkName

func NetworkName(name string) plugin.Option

NetworkName return a option to Specify network card name

Types

type MAC

type MAC struct {
	MAC net.HardwareAddr
	// contains filtered or unexported fields
}

MAC Address

func (*MAC) Deserialize

func (m *MAC) Deserialize(bslice []byte) error

Deserialize mac client id

func (*MAC) Load

func (m *MAC) Load() error

Load load data

func (MAC) Serialize

func (m MAC) Serialize() ([]byte, error)

Serialize mac client id

Jump to

Keyboard shortcuts

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