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 NewForCompass ¶
func NewForCompass( serviceDefService metadata.ServiceDefinitionService, authorizationStrategyFactory authorization.StrategyFactory, csrfTokenStrategyFactory csrf.TokenStrategyFactory, config Config) http.Handler
Types ¶
type APIExtractor ¶
type Cache ¶
type Cache interface { // Get returns entry from the cache Get(appName, serviceName, apiName string) (*CacheEntry, bool) // Put adds entry to the cache Put(appName, serviceName, apiName string, reverseProxy *httputil.ReverseProxy, authorizationStrategy authorization.Strategy, csrfTokenStrategy csrf.TokenStrategy, clientCertificate clientcert.ClientCertificate) *CacheEntry }
Cache is an interface for caching Proxies
type CacheEntry ¶
type CacheEntry struct { Proxy *httputil.ReverseProxy AuthorizationStrategy *authorizationStrategyWrapper CSRFTokenStrategy csrf.TokenStrategy }
CacheEntry stores information about proxy configuration in cache
type RetryableRoundTripper ¶
type RetryableRoundTripper struct {
// contains filtered or unexported fields
}
func NewRetryableRoundTripper ¶
func NewRetryableRoundTripper(roundTripper http.RoundTripper, authorizationStrategy authorization.Strategy, csrfTokenStrategy csrf.TokenStrategy, clientCertificate clientcert.ClientCertificate, timeout int, skipTLSVerify bool) *RetryableRoundTripper
Source Files ¶
Click to show internal directories.
Click to hide internal directories.