mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
Make Interface Config map
This commit is contained in:
parent
a90e7648db
commit
914f1c1ae3
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ type GetInterfacesParameters struct {
|
|||
}
|
||||
|
||||
type GetInterfacesResult struct {
|
||||
Interfaces []definitions.Interface
|
||||
Interfaces map[string]definitions.Interface
|
||||
}
|
||||
|
||||
func (f *Network) GetInterfaces(ctx context.Context, params GetInterfacesParameters) (GetInterfacesResult, error) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package definitions
|
||||
|
||||
type Network struct {
|
||||
Interfaces []Interface `json:"interfaces" validate:"required,dive"`
|
||||
Interfaces map[string]Interface `json:"interfaces" validate:"required,dive"`
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue