hostprovider

package
v7.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL