Versions in this module Expand all Collapse all v1 v1.0.2 Oct 3, 2020 v1.0.1 Sep 14, 2020 Changes in this version + const ErrorBadResponseBody + const ErrorInvalidEndpoint + const ErrorJsonPath + const ErrorRegex + const ErrorTypeCertificateIsExpiring + const ErrorTypeClientError + const ErrorTypeDNS + const ErrorTypeDNSConfig + const ErrorTypeDataMismatch + const ErrorTypeGoQuery + const ErrorTypeGoQueryMismatch + const ErrorTypeHeaderMismatch + const ErrorTypeNotImplemented + const ErrorTypeRedirectMismatch + const ErrorTypeReplyMismatch + const ErrorTypeServerTooSlow + const ErrorTypeSessionFail + const ErrorTypeTLSCertificateInvalid + const ErrorTypeTLSHostNameError + const ErrorTypeTLSSystemRootsError + const ErrorTypeTLSUnknownAuthority + const ErrorTypeUnexpectedContentType + const ErrorTypeUnknownError + const ErrorTypeWrongHTTPStatusCode + var ContextValidators = []ValidatorFunc + func SetUserAgentVersion(version string) + type CheckContext struct + type Error struct + Comment string + Error string + Location string + Type ErrorType + func ValidateContentType(ctx *CheckContext) (errs []Error) + func ValidateDuration(ctx *CheckContext) (errs []Error) + func ValidateGoQuery(ctx *CheckContext) (errs []Error) + func ValidateHeaders(ctx *CheckContext) (errs []Error) + func ValidateJsonPath(ctx *CheckContext) (errs []Error) + func ValidateMatchReply(ctx *CheckContext) (errs []Error) + func ValidateRedirects(ctx *CheckContext) (errs []Error) + func ValidateRegex(ctx *CheckContext) (errs []Error) + func ValidateStatusCode(ctx *CheckContext) (errs []Error) + type ErrorType string + type Result struct + Errors []Error + ID string + RunTime time.Duration + Timeout bool + Timestamp time.Time + func NewResult(id string) *Result + type ValidatorFunc func(ctx *CheckContext) (errs []Error) + type Watcher struct + func Watch(service *config.Service, chanResult chan Result) *Watcher + func (w *Watcher) LastErrors() []Error + func (w *Watcher) SetLastErrors(errs []Error) + func (w *Watcher) Stop()