package
0.1.0-rc.1
Repository: https://github.com/sdslabs/pinger.git
Documentation: pkg.go.dev

# Functions

ListenAndServe listens on :port for requests and serves them using the HTTP handler.
NewRouter returns an instance of the gin router with the required configurations and setup for the application.
RespondError writes an error response to the request.
RespondErrorInternalServer is same as calling RespondError(ctx, c, 500, err).
RespondErrorNotFound is same as calling RespondError(ctx, c, 404, error).
RespondOK writes an OK response to the request.

# Structs

ErrorResponse is the standard response for errors.
MetricResponse is the JSON response for returning metrics.
PageCheckMetricsResponse is the JSON response for all the metrics related to a particular check.
PageMetricsResponse is the JSON response for returning all the metrics related information which is fetched once the page is loaded.
PageResponse is the data passed into the template.
RouterOpts are the options used in creating a new router.