networkhelper

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package networkhelper checks the status of network interfaces and let subscribers know if it is updated

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network interface {
	StartNetwork()
	CheckConnectivity() error
	GetOutboundIP() (string, error)
	GetIPs() ([]string, error)
	GetMACAddress() (string, error)
	GetNetInterface() ([]net.Interface, error)
	AppendSubscriber() chan []net.IP
	GetVirtualIP() (string, error)
}

Network gets the informations of network interfaces of local device

func GetInstance

func GetInstance() Network

GetInstance returns the networkImpl struct

Directories

Path Synopsis
Package detector implements wrapper of netlink package
Package detector implements wrapper of netlink package
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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