Files
gluetun/internal/vpn/settings.go
Quentin McGaw 578ef768ab chore(all): return concrete types, accept interfaces
- Remove exported interfaces unused locally
- Define interfaces to accept arguments
- Return concrete types, not interfaces
2022-06-11 01:34:30 +00:00

18 lines
313 B
Go

package vpn
import (
"context"
"github.com/qdm12/gluetun/internal/configuration/settings"
)
func (l *Loop) GetSettings() (settings settings.VPN) {
return l.state.GetSettings()
}
func (l *Loop) SetSettings(ctx context.Context,
vpn settings.VPN) (
outcome string) {
return l.state.SetSettings(ctx, vpn)
}