tools

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: AGPL-3.0 Imports: 10 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(eth net.Interface) (*Eth, error)

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

func GetInterfaceAddr

func GetInterfaceAddr(regexpStr string) ([]Eth, error)

type Http

type Http struct {
	Client *http.Client
}
var HttpPack *Http

func HttpPackSelect

func HttpPackSelect(eth *Eth) *Http

Jump to

Keyboard shortcuts

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