api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(svc writers.MessageRepository, logger log.Logger) writers.MessageRepository

LoggingMiddleware adds logging facilities to the adapter.

func MakeHandler

func MakeHandler(svcName string) http.Handler

MakeHandler returns a HTTP API handler with version and metrics.

func MetricsMiddleware

func MetricsMiddleware(repo writers.MessageRepository, counter metrics.Counter, latency metrics.Histogram) writers.MessageRepository

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