package
3.13.6+incompatible
Repository: https://github.com/rackn/provision.git
Documentation: pkg.go.dev
# Functions
AssureContentType returns true if the requested content-type is present in the request header and returns a JSON encoded models.Error on the http stream and false value if it is not.
AssureDecode returns true if can successfully decode the incoming JSON object into the provided interface.
Delete provides a path for the Plugin to delete data from DRP over the Plugin Server RestFUL API.
Get provides a path for the Plugin to get data from DRP over the Plugin Server RestFUL API.
JsonResponse returns a JSON object on the http writer.
New creates a new Mux structure with the provided logger.
Post provides a path for the Plugin to send messages to DRP over the Plugin Server RestFUL API.
TestContentType tests to ensure that requested content type is in the header.
# Structs
Mux provides a logger wrapper http.ServeMux to provide integration with the logger system.
ResponseWriter wraps a normal http.ResponseWriter with a logger and a status value.