Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol: ethernet #43

Open
jesusprubio opened this issue Apr 22, 2024 · 2 comments
Open

Protocol: ethernet #43

jesusprubio opened this issue Apr 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@jesusprubio
Copy link
Owner

Return active interfaces, error if none.

@jesusprubio jesusprubio added the enhancement New feature or request label Apr 22, 2024
@DnFreddie
Copy link
Contributor

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)
}

@jesusprubio
Copy link
Owner Author

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.

DnFreddie pushed a commit to DnFreddie/up that referenced this issue Nov 19, 2024
)

- for now it retrieves all interfaces connected to the outside world
and their ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants