package
2.9.0
Repository: https://github.com/cloudtrust/common-service.git
Documentation: pkg.go.dev

# Packages

Package mock is a generated GoMock package.

# Functions

BasicDecodeRequest does not expect parameters.
DecodeRequest gets the HTTP parameters and body content.
DecodeRequestWithHeaders gets the HTTP parameters, headers and body content.
EncodeReply encodes the reply.
ErrorHandler encodes the reply when there is an error.
ErrorHandlerNoLog calls ErrorHandler without logger.
MakeAccessLogHandler creates an HTTP handler to log access logs.
MakeRightsHandler makes a HTTP handler that returns information about the rights of the user.
MakeVersionHandler makes a HTTP handler that returns information about the version of the component.

# Structs

GenericResponse for HTTP requests.
MimeContent defines a mime content for HTTP responses.
StatusCreated let handlers return a HTTP Created (201) with the given location in headers.
StatusNoContent let handlers return a HTTP NoContent (204).