- Remove exported interfaces unused locally - Define interfaces to accept arguments - Return concrete types, not interfaces
15 lines
321 B
Go
15 lines
321 B
Go
package dns
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
|
)
|
|
|
|
func (l *Loop) GetSettings() (settings settings.DNS) { return l.state.GetSettings() }
|
|
|
|
func (l *Loop) SetSettings(ctx context.Context, settings settings.DNS) (
|
|
outcome string) {
|
|
return l.state.SetSettings(ctx, settings)
|
|
}
|