chore(all): remove unexported interfaces

This commit is contained in:
Quentin McGaw
2022-06-12 00:57:37 +00:00
parent 89277828ac
commit bda6707685
18 changed files with 37 additions and 113 deletions

View File

@@ -13,8 +13,8 @@ import (
)
type Loop struct {
statusManager statusManager
state StateManager
statusManager *loopstate.State
state *state.State
// Other objects
logger Logger
// Internal channels and locks
@@ -25,18 +25,6 @@ type Loop struct {
backoffTime time.Duration
}
type statusManager interface {
GetStatus() (status models.LoopStatus)
SetStatus(status models.LoopStatus)
ApplyStatus(ctx context.Context, status models.LoopStatus) (
outcome string, err error)
}
type StateManager interface {
GetSettings() settings.HTTPProxy
SetSettings(ctx context.Context, settings settings.HTTPProxy) (outcome string)
}
const defaultBackoffTime = 10 * time.Second
func NewLoop(logger Logger, settings settings.HTTPProxy) *Loop {