Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoHostFound = errors.New("no host found") ErrAllHostsFrozen = errors.New("all hosts are frozen") )
Functions ¶
This section is empty.
Types ¶
type HostProvider ¶
type HostProvider interface { Provider() (string, error) Freeze(host string, cause error, duration time.Duration) error }
func NewWithHosts ¶
func NewWithHosts(hosts []string) HostProvider
Click to show internal directories.
Click to hide internal directories.