Files
gluetun/internal/httpproxy/settings.go

20 lines
454 B
Go
Raw Normal View History

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