Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorInvalidEndpoint ErrorType = "endpointInvalid" ErrorTypeServerTooSlow = "serverTooSlow" ErrorTypeNotImplemented = "notImplemented" ErrorTypeUnknownError = "unknownError" ErrorTypeClientError = "clientError" ErrorTypeDNS = "dns" ErrorTypeDNSConfig = "dnsConfig" ErrorTypeTLSCertificateInvalid = "tlsCertificateInvalid" ErrorTypeTLSHostNameError = "tlsHostNameError" ErrorTypeTLSSystemRootsError = "tlsSystemRootsError" ErrorTypeTLSUnknownAuthority = "tlsUnknownAutority" ErrorTypeWrongHTTPStatusCode = "wrongHTTPStatus" ErrorTypeCertificateIsExpiring = "certificateIsExpiring" ErrorTypeUnexpectedContentType = "unexpectedContentType" ErrorTypeSessionFail = "sessionFail" ErrorTypeGoQueryMismatch = "goqueryMismatch" ErrorTypeGoQuery = "goQueryGeneralError" ErrorTypeDataMismatch = "dataMismatch" ErrorJsonPath = "jsonPathError" ErrorRegex = "regexError" ErrorBadResponseBody = "badResponseBody" )
Variables ¶
View Source
var ContextValidators = []ValidatorFunc{ ValidateJsonPath, ValidateGoQuery, ValidateDuration, ValidateContentType, ValidateRegex, }
Functions ¶
This section is empty.
Types ¶
type CheckContext ¶
type CheckContext struct {
// contains filtered or unexported fields
}
type Error ¶
type Error struct { Error string `json:"error"` Type ErrorType `json:"type"` Comment string `json:"comment,omitempty"` }
func ValidateContentType ¶
func ValidateContentType(ctx *CheckContext) (errs []Error)
func ValidateDuration ¶
func ValidateDuration(ctx *CheckContext) (errs []Error)
func ValidateGoQuery ¶
func ValidateGoQuery(ctx *CheckContext) (errs []Error)
func ValidateJsonPath ¶
func ValidateJsonPath(ctx *CheckContext) (errs []Error)
func ValidateRegex ¶
func ValidateRegex(ctx *CheckContext) (errs []Error)
type Result ¶
type ValidatorFunc ¶
type ValidatorFunc func(ctx *CheckContext) (errs []Error)
Click to show internal directories.
Click to hide internal directories.