tools

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Eth

type Eth struct {
	Name string
	Addr net.Addr
}

func ConvertInterface

func ConvertInterface(logger log.FieldLogger, eth net.Interface) (*Eth, error)

ConvertInterface 当没有 ipv4 地址时 eth 可能为 nil

func GetInterfaceAddr

func GetInterfaceAddr(logger log.FieldLogger, regexpStr string) ([]Eth, error)

Jump to

Keyboard shortcuts

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