package
0.2.2
Repository: https://github.com/obitech/micro-obs.git
Documentation: pkg.go.dev

# Functions

CheckPort checks if a port is in the valid 0 <= port <= 65535 range.
CheckTCPAddress checks if a passed TCP address is a valid listening address.
HashIDToString decodes a HashID-encoded string into a normal string.
Healthz responds to a HTTP healthcheck.
InitTracer returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.
LoggerMiddleware is a decorator for a HTTP Request, adding structured logging functionality.
NewLogger creates a new Logger.
NewRequestMetricHistogram creates a RequestMetricHistogram struct with sane defaults.
NewRouter returns a gorilla/mux router.
PrometheusMiddleware wraps a request for monitoring via Prometheus.
StringToHashID converts a UTF-8 string into a HashID.
TracerMiddleware adds a Span to the request Context ready for other handlers to use it.

# Structs

Logger is an adapter type for zap's SugaredLogger.
RequestMetricHistogram defines a type of used metrics for a specific request, using Histograms for observations.
Route defines a specific route.

# Interfaces

Server is an interface for types that implement ServeHTTP.

# Type aliases

Routes defines a slice of all available API Routes.