Maint: interface composition for HTTP proxy loop

- Change SetStatus to ApplyStatus
- Add Runner interface
- Add SettingsGetterSetter alias to state.SettingsGetterSetter
This commit is contained in:
Quentin McGaw (laptop)
2021-07-24 18:50:17 +00:00
parent 7479974d79
commit 85540d96b6
4 changed files with 12 additions and 8 deletions

View File

@@ -7,6 +7,10 @@ import (
"github.com/qdm12/gluetun/internal/constants"
)
type Runner interface {
Run(ctx context.Context, done chan<- struct{})
}
func (l *looper) Run(ctx context.Context, done chan<- struct{}) {
defer close(done)