nets

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetInterfaceInfo

type NetInterfaceInfo struct {
	Name string `json:"name"`
	Mac  string `json:"mac"`
	IPv4 string `json:"ipv4"`
	IPv6 string `json:"ipv6"`
}

type NetInterfaceInfoList

type NetInterfaceInfoList []*NetInterfaceInfo

func GetLocalNetInterfaceAddress

func GetLocalNetInterfaceAddress() (NetInterfaceInfoList, error)

GetLocalNetInterfaceAddress 获取本地接口地址信息

func (*NetInterfaceInfoList) GetByName

func (n *NetInterfaceInfoList) GetByName(name string) *NetInterfaceInfo

Jump to

Keyboard shortcuts

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