Documentation ¶
Overview ¶
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
Index ¶
- func LoggingMiddleware(svc coap.Service, logger log.Logger) coap.Service
- func MakeCOAPHandler(svc coap.Service, tc mainflux.ThingsServiceClient, l log.Logger, ...) gocoap.Handler
- func MakeHTTPHandler() 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 ¶
func MakeCOAPHandler(svc coap.Service, tc mainflux.ThingsServiceClient, l log.Logger, responses chan<- string, pp time.Duration) gocoap.Handler
MakeCOAPHandler creates handler for CoAP messages.
func MakeHTTPHandler ¶
MakeHTTPHandler creates handler for version endpoint.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.