Files
gluetun/internal/httpproxy/settings.go

18 lines
342 B
Go
Raw Normal View History

2021-07-23 19:25:48 +00:00
package httpproxy
import (
"context"
"github.com/qdm12/gluetun/internal/configuration/settings"
2021-07-23 19:25:48 +00:00
)
func (l *Loop) GetSettings() (settings settings.HTTPProxy) {
2021-07-23 20:47:36 +00:00
return l.state.GetSettings()
2021-07-23 19:25:48 +00:00
}
func (l *Loop) SetSettings(ctx context.Context, settings settings.HTTPProxy) (
2024-10-11 19:20:48 +00:00
outcome string,
) {
2021-07-23 20:47:36 +00:00
return l.state.SetSettings(ctx, settings)
2021-07-23 19:25:48 +00:00
}