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

@@ -10,7 +10,7 @@ func (l *looper) GetStatus() (status models.LoopStatus) {
return l.statusManager.GetStatus()
}
func (l *looper) SetStatus(ctx context.Context, status models.LoopStatus) (
func (l *looper) ApplyStatus(ctx context.Context, status models.LoopStatus) (
outcome string, err error) {
return l.statusManager.ApplyStatus(ctx, status)
}