api

package
v0.0.0-...-0cf64df Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

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

LoggingMiddleware adds logging facilities to the core service.

func MetricsMiddleware

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

MetricsMiddleware instruments core service by tracking request count and latency.

Types

This section is empty.

Directories

Path Synopsis
mfxkit
http
Package http contains implementation of kit service HTTP API.
Package http contains implementation of kit service HTTP API.

Jump to

Keyboard shortcuts

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