Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInvalidStateHandler ¶
NewInvalidStateHandler creates handler always returning 500 response
Types ¶
type Cache ¶
type Cache interface { // Get returns entry from the cache Get(id string) (*CacheEntry, bool) // Put adds entry to the cache Put(id string, reverseProxy *httputil.ReverseProxy, authorizationStrategy authorization.Strategy, csrfTokenStrategy csrf.TokenStrategy) *CacheEntry }
type CacheEntry ¶
type CacheEntry struct { Proxy *httputil.ReverseProxy AuthorizationStrategy *authorizationStrategyWrapper CSRFTokenStrategy csrf.TokenStrategy }
type ProxyHandler ¶
type ProxyHandler interface { ServeHTTP(w http.ResponseWriter, r *http.Request) ServeHTTPNamespaced(w http.ResponseWriter, r *http.Request) }
func New ¶
func New( serviceDefService metadata.ServiceDefinitionService, authorizationStrategyFactory authorization.StrategyFactory, csrfTokenStrategyFactory csrf.TokenStrategyFactory, config Config, configRepository proxyconfig.TargetConfigProvider) ProxyHandler
New creates proxy for handling user's services calls
Click to show internal directories.
Click to hide internal directories.