api

package
v0.0.0-...-81dd437 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListChannelMessagesEndpoint

func ListChannelMessagesEndpoint(svc readers.MessageRepository) endpoint.Endpoint

func LoggingMiddleware

func LoggingMiddleware(svc readers.MessageRepository, logger logger.Logger) readers.MessageRepository

LoggingMiddleware adds logging facilities to the core service.

func MakeHandler

MakeHandler returns a HTTP handler for API endpoints.

func MetricsMiddleware

func MetricsMiddleware(svc readers.MessageRepository, counter metrics.Counter, latency metrics.Histogram) readers.MessageRepository

MetricsMiddleware instruments core service by tracking request count and latency.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL