Remove useless empty structs

This commit is contained in:
Samuel Lorch 2023-04-01 01:03:04 +02:00
parent e72c2c4f2e
commit 7121c46a74
5 changed files with 5 additions and 20 deletions

View file

@ -6,14 +6,11 @@ import (
"nfsense.net/nfsense/internal/definitions"
)
type GetAddressesParameters struct {
}
type GetAddressesResult struct {
Addresses map[string]definitions.Address
}
func (f *Object) GetAddresses(ctx context.Context, params GetAddressesParameters) (GetAddressesResult, error) {
func (f *Object) GetAddresses(ctx context.Context, params struct{}) (GetAddressesResult, error) {
return GetAddressesResult{
Addresses: f.Conf.Object.Addresses,
}, nil

View file

@ -6,14 +6,11 @@ import (
"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) {
func (f *Object) GetServices(ctx context.Context, params struct{}) (GetServicesResult, error) {
return GetServicesResult{
Services: f.Conf.Object.Services,
}, nil