package
0.1.16
Repository: https://github.com/neuralnorthwest/mu.git
Documentation: pkg.go.dev

# Functions

Address returns the address the server is listening on.
ErrorLoggingMiddleware is an HTTP middleware that logs errors.
MetricsMiddleware returns an HTTP middleware that adds HTTP request metrics to the server.
NewBufferedResponseWriter returns a new BufferedResponseWriter.
NewServer creates a new HTTP server.
OpenTelemetryTracingMiddleware is an HTTP middleware that adds OpenTelemetry tracing to the server.
PanicMiddleware returns an HTTP middleware that recovers from panics and returns a 500 Internal Server Error.
WithAddress returns an option that sets the address to listen on.
WithErrorLogging returns an option that adds the error logging middleware to the server.
WithListener returns an option that sets the listener for the server.
WithMetrics returns a ServerOption that adds HTTP request metrics to the server.
WithMiddleware returns an option that adds the given middleware to the server.
WithOpenTelemetryTracing returns an HTTP middleware that adds OpenTelemetry tracing to the server.
WithPanic returns a ServerOption that adds PanicMiddleware to the server.
WithPanicAndErrorLogging returns an option that adds the panic and error logging middleware to the server.
WithShutdownTimeout returns an option that sets the timeout for graceful shutdown.
WithTLS returns an option that sets the TLS configuration for the server.

# Variables

DefaultTLSConfig is the default TLS configuration if one is not specified when calling WithTLS.

# Structs

BufferedResponseWriter is a wrapper around http.ResponseWriter that buffers the response body.
MetricsOptions specifies options for HTTP metrics.
Server is an HTTP server.

# Type aliases

Middleware is an HTTP middleware.
ServerOption is an option for the HTTP server.