# Functions
BaseChecks creates a skima.Validator that represents the "monitor" field present in all heartbeat events.
CertToTempFile takes a certificate and returns an *os.File with a PEM encoded x.509 representation of that cert.
ErrorChecks checks the standard heartbeat error hierarchy, which should consist of a message (or a lookslike isdef that can match the message) and a type under the error key.
HelloWorldHandler is a handler for an http server that returns HelloWorldBody and a 200 OK status.
RedirectHandler redirects the paths at the keys in the redirectingPaths map to the locations in their values.
ResolveChecks returns a lookslike matcher for the 'resolve' fields.
RespondingTCPChecks creates a skima.Validator that represents the "tcp" field present in all heartbeat events that use a Tcp connection as part of their DialChain.
ServerPort takes an httptest.Server and returns its port as a uint16.
SimpleURLChecks returns a check for a simple URL with only a scheme, host, and port.
SizedResponseHandler responds with 200 to any request with a body exactly the size of the `bytes` argument, where each byte is the character 'x'.
SummaryChecks validates the "summary" field and its subfields.
TLSChecks validates the given x509 cert at the given position.
URLChecks returns a validator for the given URL's fields.
# Constants
HelloWorldBody is the body of the HelloWorldHandler.