routes

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureErrors added in v0.5.0

func CaptureErrors(handler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)

CaptureErrors wraps http handler with raven.RecoveryHandler which captures unhandled exceptions to sentry.io

func ContentByClaimsURI added in v0.5.0

func ContentByClaimsURI(w http.ResponseWriter, req *http.Request)

ContentByClaimsURI streams content requested by URI to the browser

func ContentByURL added in v0.5.0

func ContentByURL(w http.ResponseWriter, req *http.Request)

ContentByURL streams content requested by URI to the browser

func Index

func Index(w http.ResponseWriter, req *http.Request)

Index just serves a blank home page

func InstallRoutes added in v0.5.0

func InstallRoutes(r *mux.Router)

InstallRoutes sets up global API handlers

func Proxy added in v0.1.0

func Proxy(w http.ResponseWriter, req *http.Request)

Proxy takes client request body and feeds it to proxy.ForwardCall

Types

This section is empty.

Jump to

Keyboard shortcuts

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