mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
17 lines
329 B
Go
17 lines
329 B
Go
package object
|
|
|
|
import (
|
|
"context"
|
|
|
|
"nfsense.net/nfsense/internal/definitions"
|
|
)
|
|
|
|
type GetServicesResult struct {
|
|
Services map[string]definitions.Service
|
|
}
|
|
|
|
func (f *Object) GetServices(ctx context.Context, params struct{}) (GetServicesResult, error) {
|
|
return GetServicesResult{
|
|
Services: f.Conf.Object.Services,
|
|
}, nil
|
|
}
|