# Functions
BadRequestError returns a 400 json response.
EnforcePSK is a middleware that checks for a valid x-rh-exports-psk header.
EnforeUserIdentity is a middleware that checks for a valid x-rh-identity header and adds the id to the request context.
No description provided by the author
GetPaginatedResponse accepts the pagination settings and full data list and returns the paginated data.
GetPagination is a helper function that returns the Paginate object stored in the request context.
GetURLParams fetches the urlParams from the context.
GetUserIdentity is a helper function that return the x-rh-identity stored in the request context.
GZIPContentType is a middleware that sets the Content-Type to `application/gzip`.
IsValidUUID is a helper function that checks if the given string is a valid uuid.
JSONContentType is a middleware that sets the Content-Type to `application/json`.
JSONError writes the supplied error and status code to the ResponseWriter.
PaginationCtx is a middleware that parses the pagination settings from the url query and injects them as a Paginate object in the request context.
SetContentType is a middleware that sets the Content-Type to the supplied string.
SliceContainsString returns true if the specified target is present in the given slice.
URLParamsCtx is a middleware that pulls `exportUUID`, `resourceUUID`, and `application` from the url and puts them into a `urlParams` object in the request context.
# Constants
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author
Links represents the first, next, previous, and last links of the paginated response.
Meta represents the response metadata.
Pagination represents pagination parameters.
PaginatedResponse contains the paginated response data.
URLParams represent the `exportUUID`, `resourceUUID`, and `application` found in the url.
No description provided by the author