nfsense/internal/api/object/services.go

20 lines
381 B
Go

package object
import (
"context"
"nfsense.net/nfsense/internal/definitions"
)
type GetServicesParameters struct {
}
type GetServicesResult struct {
Services map[string]definitions.Service
}
func (f *Object) GetServices(ctx context.Context, params GetServicesParameters) (GetServicesResult, error) {
return GetServicesResult{
Services: f.Conf.Object.Services,
}, nil
}