package
1.1.4
Repository: https://github.com/shuvava/go-ota-svc-common.git
Documentation: pkg.go.dev

# Functions

GetContentSize returns Content length from request header.
GetContentType returns value of ContentType header.
GetNamespace returns OTA namespace from header.
GetRequestContext return populated request context.Context.
GetRequestID returns RequestID from header.
HealthzHandler is a k8s liveness endpoint.
NewErrorHandler sets up the mapping of error type to handler.
NewErrorResponse creates new error response from error.
ReadyzHandler is a k8s readiness endpoint.
ServerHeader middleware adds a `Server` header to the response.

# Constants

DefaultNamespaceValue is default OTA namespace.
LivenessPath endpoint default path.
ReadinessPath endpoint default path.
StatusHealthy means that service in health state.
StatusUnhealthy means that service is in degraded state.

# Structs

ErrorHandler is a wrapper on echo.HTTPErrorHandler.
ErrorResponse is http error response model.
HealthEntryStatus is status of external dependency like db or queue.
HealthStatusResponse response of health endpoints.

# Type aliases

Status of service.