online icon indicating copy to clipboard operation
online copied to clipboard

Protocol: ethernet

Open jesusprubio opened this issue 1 year ago • 3 comments

Return active interfaces, error if none.

jesusprubio avatar Apr 22 '24 20:04 jesusprubio

So, you mean to define a new interface called NetworkInterface that will check the stats? and create implementation for each one ? type NetworkInterface interface { Name() string
IsActive() (bool, error)
Stats() (map[string]interface{}, error) Type() string
Scan() ([]string, error)
}

DnFreddie avatar Nov 18 '24 12:11 DnFreddie

The idea is to print information about active interfaces to confirm that at least one is connected. It is a common check when troubleshooting this kind of problems.

jesusprubio avatar Nov 18 '24 21:11 jesusprubio

Here: https://github.com/jesusprubio/up/pull/75

jesusprubio avatar Apr 06 '25 08:04 jesusprubio