refactor: parameterize submit delay
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user