http

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package http implements the basic pace microservice handlers and a standard microservice server configured via environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Environment

func Environment() string

Environment returns the name of the current server environment

func Router

func Router() *mux.Router

Router returns the default microservice endpoints for health, metrics and debugging

func Server

func Server(handler http.Handler) *http.Server

Server returns a http.Server configured using environment variables, following https://12factor.net/.

Types

This section is empty.

Directories

Path Synopsis
jsonapi
generator
Package generator translates an OpenAPIv3 specification into working go code that handles marshalling, error handling, parameter parsing and validation.
Package generator translates an OpenAPIv3 specification into working go code that handles marshalling, error handling, parameter parsing and validation.
runtime
Package runtime contains functions for marshalling, error handling, parameter parsing and validation.
Package runtime contains functions for marshalling, error handling, parameter parsing and validation.
Package oauth2 provides a middelware that introspects the auth token on behalf of PACE services and populate the request context with useful information when the token is valid, otherwise aborts the request.
Package oauth2 provides a middelware that introspects the auth token on behalf of PACE services and populate the request context with useful information when the token is valid, otherwise aborts the request.

Jump to

Keyboard shortcuts

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