api

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Overview

Package api contains implementation of bootstrap service HTTP API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(svc bootstrap.Service, reader bootstrap.ConfigReader) http.Handler

MakeHandler returns a HTTP handler for API endpoints.

func MetricsMiddleware

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

MetricsMiddleware instruments core service by tracking request count and latency.

func NewLoggingMiddleware

func NewLoggingMiddleware(svc bootstrap.Service, logger log.Logger) bootstrap.Service

NewLoggingMiddleware adds logging facilities to the core service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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