iface

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package iface contains utility functions for a network interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iface

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

Iface is the object contains the interface name.

func NewInterface

func NewInterface(n string) *Iface

NewInterface creates a new Iface object.

func (*Iface) ParentDeviceName

func (i *Iface) ParentDeviceName(ctx context.Context) (string, error)

ParentDeviceName returns name of device at which wiphy device is present.

func (*Iface) PhyName

func (i *Iface) PhyName(_ context.Context) (string, error)

PhyName returns name of the WiFi phy (e.g., "phy0").

Jump to

Keyboard shortcuts

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