package
0.13.1-beta1
Repository: https://github.com/donewscode/core.git
Documentation: pkg.go.dev

# Functions

MakeApacheLogMiddleware creates a standard HTTP middleware responsible for access logging.
Metrics is a middleware for standard library http package.
NewRequestDurationSeconds returns a new RequestDurationSeconds.
NewResponseEncoder wraps the http.ResponseWriter and returns a reference to ResponseEncoder.

# Variables

Trace is an alias of nethttp.Middleware.

# Structs

ApacheLogAdapter logs HTTP requests in the Apache Common Log Format.
DebugModule defines a http provider for container.Container.
DocsModule defines a http provider for container.Container.
HealthCheckModule defines a http provider for container.Container.
MetricsModule exposes prometheus metrics to `/metrics`.
RequestDurationSeconds is a wrapper around a histogram that measures the request latency.
ResponseEncoder encodes either a successful http response or errors to the JSON format, and pipe the serialized json data to the http.ResponseWriter.

# Interfaces

No description provided by the author
No description provided by the author