mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 19:00:50 +01:00
20 lines
455 B
Go
20 lines
455 B
Go
package routemanager
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/client/internal/routeselector"
|
|
)
|
|
|
|
type SelectorState routeselector.RouteSelector
|
|
|
|
func (s *SelectorState) Name() string {
|
|
return "routeselector_state"
|
|
}
|
|
|
|
func (s *SelectorState) MarshalJSON() ([]byte, error) {
|
|
return (*routeselector.RouteSelector)(s).MarshalJSON()
|
|
}
|
|
|
|
func (s *SelectorState) UnmarshalJSON(data []byte) error {
|
|
return (*routeselector.RouteSelector)(s).UnmarshalJSON(data)
|
|
}
|