routes

package
v0.6.0-dev Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureErrors

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

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

ContentByClaimsURI streams content requested by URI to the browser

func ContentByURL

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

func InstallRoutes(r *mux.Router)

InstallRoutes sets up global API handlers

func Proxy

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

Proxy takes client request body and feeds it to the proxy module

Types

This section is empty.

Jump to

Keyboard shortcuts

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