20 lines
444 B
Go
20 lines
444 B
Go
package httpproxy
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/qdm12/gluetun/internal/configuration"
|
|
"github.com/qdm12/gluetun/internal/httpproxy/state"
|
|
)
|
|
|
|
type SettingsGetSetter = state.SettingsGetSetter
|
|
|
|
func (l *Loop) GetSettings() (settings configuration.HTTPProxy) {
|
|
return l.state.GetSettings()
|
|
}
|
|
|
|
func (l *Loop) SetSettings(ctx context.Context, settings configuration.HTTPProxy) (
|
|
outcome string) {
|
|
return l.state.SetSettings(ctx, settings)
|
|
}
|