AccessDefinition defines which versions of an API a key has access to.
AccessRightsCheck is a middleware that will check if the key bing used to access the API has permission to access the specific version.
AccessSpecs define what URLS a user has access to an what methods are enabled.
AccessTokenGenTyk is a modified authorization token generator that uses the same method used to generate tokens for Tyk authHandler.
No description provided by the author
AnalyticsError is an error for when writing to the storage engine fails.
AnalyticsRecord encodes the details of a request.
APIAllKeys represents a list of keys in the memory store.
APIDefinitionLoader will load an Api definition from a storage system.
APIError is generic error object returned if there is something wrong with the request.
APIErrorMessage is an object that defines when a generic error occurred.
APIModifyKeySuccess represents when a Key modification was successful.
APISpec represents a path specification for an API, to avoid enumerating multiple nested lists, a single flattened URL list is checked for matching paths and then it's status evaluated if found.
APIStatusMessage represents an API status message.
No description provided by the author
KeyExists will check if the key being used to access the API is in the request data, and then if the key is in the storage engine.
No description provided by the author
BasicAuthKeyIsValid uses a username instead of.
BatchReplyUnit encodes a request suitable for replying to a batch request.
BatchRequestHandler handles batch requests on /tyk/batch for any API Definition that has the feature enabled.
BatchRequestStructure defines a batch request order.
No description provided by the author
Bundle is the basic bundle data structure, it holds the bundle name and the data.
No description provided by the author
No description provided by the author
Config is the configuration object used by tyk to set up various parameters.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DefaultAuthorisationManager implements AuthorisationHandler, requires a StorageHandler to interact with key store.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DynamicMiddleware is a generic middleware that will execute JS code before continuing.
No description provided by the author
ErrorHandler is invoked whenever there is an issue with a proxied request, most middleware will invoke the ErrorHandler if something is wrong with the request and halt the request processing through the chain.
EVENT_AuthFailureMeta is the metadata structure for an auth failure (EVENT_AuthFailure).
EVENT_CurcuitBreakerMeta is the event status for a circuit breaker tripping.
No description provided by the author
EVENT_KeyExpiredMeta is the metadata structure for an auth failure (EVENT_KeyExpired).
EVENT_QuotaExceededMeta is the metadata structure for a quota exceeded event (EVENT_QuotaExceeded).
EVENT_RateLimitExceededMeta is the metadata structure for a rate limit exceeded event (EVENT_RateLimitExceeded).
EVENT_VersionFailureMeta is the metadata structure for an auth failure (EVENT_KeyExpired).
EVENT_VersionFailureMeta is the metadata structure for an auth failure (EVENT_KeyExpired).
EVENT_VersionFailureMeta is the metadata structure for an auth failure (EVENT_KeyExpired).
EventMessage is a standard form to send event data to handlers.
EventMetaDefault is a standard embedded struct to be used with custom event metadata types, gives an interface for easily extending event metadata objects.
No description provided by the author
No description provided by the author
No description provided by the author
GranularAccessMiddleware will check if a URL is specifically enabled for the key.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HMACMiddleware will check if the request has a signature, and if the request is allowed through.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HttpBundleGetter is a simple HTTP BundleGetter.
No description provided by the author
No description provided by the author
No description provided by the author
InMemoryStorageManager implements the StorageHandler interface, it uses an in-memory map to store sessions, should only be used for testing purposes.
No description provided by the author
IPWhiteListMiddleware lets you define a list of IPs to allow upstream.
No description provided by the author
No description provided by the author
JSVMEventHandler is a scriptable event handler.
No description provided by the author
No description provided by the author
KeyExists will check if the key being used to access the API is in the request data, and then if the key is in the storage engine.
KeyError is a standard error for when a key is not found in the storage engine.
KeyExpired middleware will check if the requesting key is expired or not.
No description provided by the author
LDAPStorageHandler implements StorageHandler, this is a read-only implementation to access keys from an LDAP service.
No description provided by the author
No description provided by the author
LogMessageEventHandler is a sample Event Handler.
No description provided by the author
No description provided by the author
MiniRequestObject is marshalled to JSON string and pased into JSON middleware.
ModifiedMiddleware is a sample custom middleware component, must inherit TykMiddleware so you have access to spec and definition data.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewClientRequest is an outward facing JSON object translated from osin OAuthClients.
NewOAuthNotification is a notification sent to a webhook when an access request or a refresh request comes in.
No description provided by the author
No description provided by the author
No description provided by the author
Notification is a type that encodes a message published to a pub sub channel (shared between implementations).
Oauth2KeyExists will check if the key being used to access the API is in the request data, and then if the key is in the storage engine.
OAuthClient is a representation within an APISpec of a client.
OAuthHandlers are the HTTP Handlers that manage the Tyk OAuth flow.
OAuthManager handles and wraps osin OAuth2 functions to handle authorise and access requests.
No description provided by the author
RateLimitAndQuotaCheck will check the incomming request and key whether it is within it's quota and within it's rate limit, it makes use of the SessionLimiter object to do this.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ModifiedMiddleware is a sample custom middleware component, must inherit TykMiddleware so you have access to spec and definition data.
No description provided by the author
RateLimitAndQuotaCheck will check the incomming request and key whether it is within it's quota and within it's rate limit, it makes use of the SessionLimiter object to do this.
RedisAnalyticsHandler implements AnalyticsHandler and will record analytics data to a redis back end as defined in the Config object.
RedisCacheMiddleware is a caching middleware that will pull data from Redis instead of the upstream proxy.
No description provided by the author
RedisClusterStorageManager is a storage manager that uses the redis database.
No description provided by the author
RedisNotifier implements Notifier and will use redis pub/sub channles to send notifications.
TODO: Refactor this to move prefix handling into a checker method, then it can be an unexported setting in the struct.
RedisStorageManager is a storage manager that uses the redis database.
RequestDefinition defines a batch request.
RequestObject is marshalled to JSON string and pased into JSON middleware.
No description provided by the author
TransformMiddleware is a middleware that will apply a template to a request body to transform it's contents ready for an upstream API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Lets the user override and return a response from middleware.
ReverseProxy is an HTTP Handler that takes an incoming request and sends it to another server, proxying the response back to the client.
No description provided by the author
No description provided by the author
RPCPurger will purge analytics data into a Mongo database, requires that the Mongo DB string is specified in the Config object.
RPCStorageHandler is a storage manager that uses the redis database.
No description provided by the author
No description provided by the author
SessionLimiter is the rate limiter for the API, use ForwardMessage() to check if a message should pass through or not.
SessionState objects represent a current API session, mainly used for rate limiting.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SuccessHandler represents the final ServeHTTP() request for a proxied API request.
No description provided by the author
TrackEndpointMiddleware sets context variables to enable or disable whether Tyk should record analytitcs for a specific path.
TransformMiddleware is a middleware that will apply a template to a request body to transform it's contents ready for an upstream API.
No description provided by the author
TransformMiddleware is a middleware that will apply a template to a request body to transform it's contents ready for an upstream API.
No description provided by the author
TransformMiddleware is a middleware that will apply a template to a request body to transform it's contents ready for an upstream API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TykMiddleware wraps up the ApiSpec and Proxy objects to be included in a middleware handler, this can probably be handled better.
TykOsinServer subclasses osin.Server so we can add the SetClient method without wrecking the lbrary.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
URLRewriteMiddleware Will rewrite an inbund URL to a matching outbound one, it can also handle dynamic variable substitution.
No description provided by the author
No description provided by the author
URLSpec represents a flattened specification for URLs, used to check if a proxy URL path is on any of the white, plack or ignored lists.
VersionCheck will check whether the version of the requested API the request is accessing has any restrictions on URL endpoints.
DynamicMiddleware is a generic middleware that will execute JS code before continuing.
No description provided by the author
No description provided by the author
WebHookHandler is an event handler that triggers web hooks.
No description provided by the author
No description provided by the author
ZipBundleSaver is a BundleSaver for ZIP files.