You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
}
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.
Return active interfaces, error if none.
The text was updated successfully, but these errors were encountered: