package
1.10.0
Repository: https://github.com/paysharesdev/kelp.git
Documentation: pkg.go.dev

# Functions

DownloadFile downloads a URL to a file on the local disk as it downloads it.
DownloadFileWithGrab is a download function that uses the grab third-party library.
JSONRequest submits an HTTP web request and parses the response into the responseData object as JSON.
JSONRequestDynamicHeaders submits an HTTP web request and parses the response into the responseData object as JSON.
MakeHeaderFn is a factory method that makes a HeaderFn.
MakeServer creates a WebServer that's responsible for serving all the endpoints passed into it.
ParseBool helps to parse a bool value out of the map.
ParseNumber helps to parse a model.Number value out of the map.
ParseString helps to parse a string value out of the map.

# Constants

GoogleAuth means that a valid Google email is needed to access the endpoint.
NoAuth means that no authentication is required.
PrefixFieldNotFound is what is returned in the error when we cannot find a field in the map.

# Structs

Config is a struct storing configuration parameters for the monitoring server.

# Interfaces

Endpoint represents an API endpoint that implements GetHandlerFunc which returns a http.HandlerFunc specifying the behavior when this endpoint is hit.
WebServer defines an interface for a generic HTTP/S server with a StartServer function.

# Type aliases

AuthLevel specifies the level of authentication needed for an endpoint.
HeaderFn represents a function that transforms headers.
HeaderFnFactory is a factory method for the HeaderFn.