handler

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenStoreError = "Error getting token from store"
	JsonParseError  = "Error parsing JSON"
	TeapotMessage   = "I'm a teapot"
	Unauthorized    = "Not authorized"
	ProxyError      = "Proxy error"
)

Variables

This section is empty.

Functions

func HealthHandler

func HealthHandler() http.Handler

Types

type ProxyHandler added in v0.3.0

type ProxyHandler struct {
	// contains filtered or unexported fields
}

func NewProxyHandler added in v0.3.0

func NewProxyHandler(target *url.URL, store store.Store, auth auth.Authorizer) ProxyHandler

func (ProxyHandler) ServeHTTP added in v0.3.0

func (t ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type StoreHandler

type StoreHandler struct {
	// contains filtered or unexported fields
}

func NewStoreHandler

func NewStoreHandler(store store.Store, auth auth.Authorizer) StoreHandler

func (StoreHandler) ServeHTTP

func (t StoreHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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