refactor: parameterize submit delay

This commit is contained in:
2023-12-27 07:38:48 +01:00
parent cc7a59c109
commit 69389d030b
6 changed files with 27 additions and 12 deletions

View File

@@ -1,6 +1,12 @@
package provider
import "time"
type ProviderIface interface {
Login(user, pass string) error
SwitchWIFI() error
Login(string, string) error
SwitchWIFI(SwitchConfig) error
}
type SwitchConfig struct {
SubmitDelay time.Duration
}