Documentation ¶
Index ¶
- Variables
- func CheckHTTP(ctx context.Context, client *http.Client) (err error)
- func IsDocker() (ok bool)
- func MakeIsHealthy(db AllSelecter, resolver LookupIPer) func(ctx context.Context) error
- func NewServer(address string, logger Logger, healthcheck func(context.Context) error) (server *httpserver.Server, err error)
- type AllSelecter
- type Client
- type Logger
- type LookupIPer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRecordUpdateFailed = errors.New("record update failed") ErrRecordIPNotSet = errors.New("record IP not set") ErrLookupMismatch = errors.New("lookup IP addresses do not match") )
View Source
var (
ErrHTTPStatusCodeNotOK = errors.New("status code is not OK")
)
View Source
var ErrUnhealthy = errors.New("program is unhealthy")
Functions ¶
func MakeIsHealthy ¶
func MakeIsHealthy(db AllSelecter, resolver LookupIPer) func(ctx context.Context) error
Types ¶
type AllSelecter ¶
Click to show internal directories.
Click to hide internal directories.