mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
20 lines
386 B
Go
20 lines
386 B
Go
package firewall
|
|
|
|
import (
|
|
"context"
|
|
|
|
"nfsense.net/nfsense/pkg/definitions"
|
|
)
|
|
|
|
type GetServicesParameters struct {
|
|
}
|
|
|
|
type GetServicesResult struct {
|
|
Services map[string]definitions.Service
|
|
}
|
|
|
|
func (f *Firewall) GetServices(ctx context.Context, params GetForwardRulesParameters) (GetServicesResult, error) {
|
|
return GetServicesResult{
|
|
Services: f.Conf.Firewall.Services,
|
|
}, nil
|
|
}
|