Documentation ¶
Index ¶
- func CustomHTTPError(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, ...)
- func HttpResponseModifier(ctx context.Context, w http.ResponseWriter, p proto.Message) error
- func LoggingMiddleware(logger logging.Logger) func(http.Handler) http.Handler
- func MetricsMiddleware(collector metrics_collector.HttpApiMetrics, logger logging.Logger) func(http.Handler) http.Handler
- func SecurityMiddleware() func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomHTTPError ¶
func HttpResponseModifier ¶
func LoggingMiddleware ¶
LoggingMiddleware logs the incoming HTTP request & its duration.
func MetricsMiddleware ¶
func MetricsMiddleware( collector metrics_collector.HttpApiMetrics, logger logging.Logger, ) func(http.Handler) http.Handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.