Documentation
¶
Index ¶
Constants ¶
View Source
const ( TokenStoreError = "Error getting token from store" JsonParseError = "Error parsing JSON" TeapotMessage = "I'm a teapot" ProxyError = "Proxy error" )
Variables ¶
This section is empty.
Functions ¶
func HealthHandler ¶
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)
Click to show internal directories.
Click to hide internal directories.