api

package
v0.0.0-...-f17446d Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(consumer consumers.Consumer, logger log.Logger) consumers.Consumer

LoggingMiddleware adds logging facilities to the adapter.

func MakeHandler

func MakeHandler(svcName string) http.Handler

MakeHandler returns a HTTP API handler with health check and metrics.

func MetricsMiddleware

func MetricsMiddleware(consumer consumers.Consumer, counter metrics.Counter, latency metrics.Histogram) consumers.Consumer

MetricsMiddleware returns new message repository with Save method wrapped to expose metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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