Support multiple registered interfaces in interface monitor
This commit is contained in:
parent
1aa83a9f92
commit
3b51857024
2 changed files with 5 additions and 5 deletions
|
|
@ -31,7 +31,7 @@ type DefaultInterfaceMonitor interface {
|
|||
RegisterCallback(callback DefaultInterfaceUpdateCallback) *list.Element[DefaultInterfaceUpdateCallback]
|
||||
UnregisterCallback(element *list.Element[DefaultInterfaceUpdateCallback])
|
||||
RegisterMyInterface(interfaceName string)
|
||||
MyInterface() string
|
||||
MyInterfaces() []string
|
||||
}
|
||||
|
||||
type DefaultInterfaceMonitorOptions struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue