oui

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(opts ...Option)

func Lookup

func Lookup(mac net.HardwareAddr) (name string)

func SetFlags

func SetFlags(fs *pflag.FlagSet, cfg *Config)

Types

type Config

type Config struct {
	Enabled   bool
	Url       string
	Directory string
	Filename  string
}

type Entry

type Entry struct {
	Prefix string
	Name   string
}

type Option

type Option func(*Options)

func WithDirectory

func WithDirectory(x string) Option

func WithFilename

func WithFilename(x string) Option

func WithUrl

func WithUrl(x string) Option

type Options

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

Jump to

Keyboard shortcuts

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