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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(svc hj212.Service, logger log.Logger) hj212.Service

LoggingMiddleware adds logging facilities to the adapter.

func MakeHTTPHandler

func MakeHTTPHandler() http.Handler

MakeHTTPHandler creates handler for version endpoint.

func MakeHj212Handler

func MakeHj212Handler(svc hj212.Service, l log.Logger) mux.HandlerFunc

MakeHj212Handler creates handler for Hj212 messages.

func MetricsMiddleware

func MetricsMiddleware(svc hj212.Service, counter metrics.Counter, latency metrics.Histogram) hj212.Service

MetricsMiddleware instruments adapter 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