api

package
v0.0.0-...-b6b9972 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 14 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 MakeHandler

func MakeHandler(svc manager.Service) http.Handler

MakeHandler returns a HTTP handler for API endpoints.

func NewLoggingService

func NewLoggingService(logger log.Logger, s manager.Service) manager.Service

NewLoggingService adds logging facilities to the core service.

func NewMetricService

func NewMetricService(counter metrics.Counter, latency metrics.Histogram, s manager.Service) manager.Service

NewMetricService instruments core service 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