Documentation ¶
Overview ¶
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
Index ¶
- Constants
- func LoggingMiddleware(svc users.Service, logger *slog.Logger) users.Service
- func MakeHandler(cls users.Service, grps groups.Service, mux *chi.Mux, logger *slog.Logger, ...) http.Handler
- func MetricsMiddleware(svc users.Service, counter metrics.Counter, latency metrics.Histogram) users.Service
Constants ¶
View Source
const MailSent = "Email with reset link is sent"
MailSent message response when link is sent.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware adds logging facilities to the clients service.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.