Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(serviceDefService metadata.ServiceDefinitionService, authorizationStrategyFactory authorization.StrategyFactory, csrfTokenStrategyFactory csrf.TokenStrategyFactory, config Config) http.Handler
New creates proxy for handling user's services calls
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 }
Click to show internal directories.
Click to hide internal directories.