Documentation ¶
Overview ¶
Package api contains implementation of bootstrap service HTTP API.
Index ¶
- Variables
- func LoggingMiddleware(svc bootstrap.Service, logger *slog.Logger) bootstrap.Service
- func MakeHandler(svc bootstrap.Service, reader bootstrap.ConfigReader, logger *slog.Logger, ...) http.Handler
- func MetricsMiddleware(svc bootstrap.Service, counter metrics.Counter, latency metrics.Histogram) bootstrap.Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBootstrap indicates error in getting bootstrap configuration. ErrBootstrap = errors.New("failed to read bootstrap configuration") )
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware adds logging facilities to the bootstrap service.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.