package
0.0.0-20240401192516-e75a48ecdf48
Repository: https://github.com/fredjeck/configserver.git
Documentation: pkg.go.dev
# Functions
HTTPInternalServerError returns an HTTP 500 error along a RFC9457 compliant error detail.
HTTPNotFound returns an HTTP 404 error along a RFC9457 compliant error detail.
HTTPUnauthorized returns an HTTP 401 error along a RFC9457 compliant error detail.
HTTPUnsupportedMediaType returns an HTTP 415 error along a RFC9457 compliant error detail.
NewConfigServer initializes a new ConfigServer instance.
Ok returns an HTTP 201 response along the provided content.
# Constants
ClientSecretComponents is the number of components used in client secrets.
ClientSecretSeparatorChar is the Char used to separate client secret component.
HTTPRequestDuration represents the logging key for the http request Duration.
HTTPRequestID represents the logging key for the http request Id.
HTTPRequestMethod represents the logging key for the http request Method.
HTTPRequestPath represents the logging key for the http request Path.
HTTPRequestStatus represents the logging key for the http request Status.
# Structs
ConfigServer is a standalone server which aims to securely serve git repositories via http.
ProblemDetail is a RFC9457 compliant error detail used by the server to return errors.
RegisterClientResponse represents the API's output.