Documentation ¶
Overview ¶
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
Index ¶
- func LoggingMiddleware(svc coap.Service, logger *slog.Logger) coap.Service
- func MakeCoAPHandler(svc coap.Service, l *slog.Logger) mux.HandlerFunc
- func MakeHandler(instanceID string) http.Handler
- func MetricsMiddleware(svc coap.Service, counter metrics.Counter, latency metrics.Histogram) coap.Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware adds logging facilities to the adapter.
func MakeCoAPHandler ¶
MakeCoAPHandler creates handler for CoAP messages.
func MakeHandler ¶
MakeHandler returns a HTTP handler for API endpoints.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.