MCPcopy Create free account

hub / github.com/TykTechnologies/tyk / functions

Functions9,242 in github.com/TykTechnologies/tyk

↓ 16 callersMethodTykNewSingleHostReverseProxy
TykNewSingleHostReverseProxy returns a new ReverseProxy that rewrites URLs to the scheme, host, and base path provided in target. If the target's path
gateway/reverse_proxy.go:209
↓ 16 callersFunctioncalculateLifetime
calculateLifetime calculates the lifetime of a session. It also sets the value to the key expiration in case of the key expiration value is respected
user/session.go:445
↓ 16 callersFunctioncreateRedisStorageMock
(t *testing.T)
internal/certcheck/cache_test.go:461
↓ 16 callersFunctiongetToken
(t *testing.T, ts *Test)
gateway/oauth_manager_test.go:979
↓ 16 callersMethodgrpcError
(object *coprocess.Object, errorMsg string)
coprocess/grpc/dispatcher_test.go:14
↓ 16 callersFunctionisNonNullType
(type)
templates/playground/playground.js:649
↓ 16 callersFunctionmethodOp
(f)
templates/playground/playground.js:149
↓ 16 callersFunctionownKeys
(object,enumerableOnly)
templates/playground/playground.js:705
↓ 16 callersFunctionsetSelection
(doc,sel,options)
templates/playground/playground.js:149
↓ 15 callersMethodDeleteKey
(string)
storage/storage.go:29
↓ 15 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
storage/mock/storage.go:38
↓ 15 callersMethodExtractTo
ExtractTo extracts *HMAC to *apidef.APIDefinition.
apidef/oas/authentication.go:619
↓ 15 callersMethodFilter
Filter, if enabled=true, will filter the internal api definitions by their tags.
internal/model/merged_apis.go:46
↓ 15 callersMethodIsCheckCooldownActive
(certID string)
internal/certcheck/cache.go:40
↓ 15 callersFunctionIsMTLSError
IsMTLSError checks if the error is related to mTLS certificate loading
internal/httpclient/factory.go:31
↓ 15 callersFunctionJ
(a)
templates/playground/playground.js:1298
↓ 15 callersMethodLogger
Logger is used by middleware process functions.
gateway/middleware.go:307
↓ 15 callersMethodMarshalJSON
MarshalJSON implements json.Marshaller.
apidef/oas/oas.go:40
↓ 15 callersFunctionMigrateAndFillOAS
MigrateAndFillOAS migrates classic APIs to OAS-compatible forms. Then, it fills an OAS with it. To be able to make it a valid OAS, it adds some requir
apidef/oas/oas.go:719
↓ 15 callersMethodNanoseconds
Nanoseconds returns ReadableDuration in nanoseconds.
internal/time/duration.go:87
↓ 15 callersMethodNotify
Notify will send a notification to a channel
gateway/redis_signals.go:242
↓ 15 callersMethodString
String implements fmt.Stringer for the version info.
cli/version/version.go:41
↓ 15 callersMethodTracer
()
internal/graphql/otel_graphql_engine_detailed_test.go:409
↓ 15 callersFunctionerrorAndStatusCode
(errType string)
gateway/handler_error.go:42
↓ 15 callersFunctionfi
(a,b,c,d)
templates/playground/playground.js:1290
↓ 15 callersFunctiong
(b)
templates/playground/playground.js:1290
↓ 15 callersFunctiongg
(a,b)
templates/playground/playground.js:1290
↓ 15 callersFunctionmockFromOAS
(r *http.Request, operation *openapi3.Operation, fromOASExamples *oas.FromOASExamples)
gateway/mw_mock_response.go:154
↓ 15 callersFunctionnh
(a,b,c,d)
templates/playground/playground.js:1290
↓ 15 callersFunctionregChange
(cm,from,to,lendiff)
templates/playground/playground.js:149
↓ 15 callersMethodreportLoginFailure
(tykId string, r *http.Request)
gateway/mw_jwt.go:1045
↓ 15 callersFunctionsetCustomHeader
(h http.Header, key string, value string, ignoreCanonical bool)
gateway/reverse_proxy.go:474
↓ 15 callersFunctiontestGetOASAPI
(t *testing.T, d *Test, id, name, title string)
gateway/api_test.go:3740
↓ 15 callersFunctiontestUpdateAPI
(t *testing.T, ts *Test, api interface{}, apiID string, oasTyped bool)
gateway/api_test.go:3724
↓ 15 callersMethodtoBuilder
()
coprocess/bindings/java/CoprocessSessionState.java:2798
↓ 14 callersMethodCreate
Create a bucket with a name, capacity, and rate. rate is how long it takes for full capacity to drain.
internal/model/bucket.go:39
↓ 14 callersMethodDeleteScanMatch
DeleteKeys will remove a group of keys in bulk
storage/redis_cluster.go:551
↓ 14 callersFunctionDurationToMillisecond
(d time.Duration)
gateway/analytics.go:232
↓ 14 callersFunctionGg
(a,b,c,d)
templates/playground/playground.js:1290
↓ 14 callersMethodIsEmpty
IsEmpty checks if a specific version parameter is empty or not set. Returns true if the parameter is empty, false otherwise.
lib/apidef/version.go:94
↓ 14 callersFunctionNewInMemoryCooldownCache
NewInMemoryCooldownCache creates a new InMemoryCooldownCache.
internal/certcheck/cache.go:69
↓ 14 callersFunctionR
(a,b,c,d)
templates/playground/playground.js:1311
↓ 14 callersMethodStart
(ctx context.Context)
gateway/host_checker.go:410
↓ 14 callersFunctionStripListenPath
StripListenPath will strip the listenPath from the passed urlPath. If the listenPath contains mux variables, it will trim away the matching pattern wi
internal/httputil/mux.go:82
↓ 14 callersFunctionValidatePath
ValidatePath validates if the path is valid. Returns an error.
internal/httputil/mux.go:66
↓ 14 callersFunction_defineProperty
(obj,key,value)
templates/playground/playground.js:705
↓ 14 callersFunctionctxGetRequestStatus
(r *http.Request)
gateway/api.go:3455
↓ 14 callersFunctione_preventDefault
(e)
templates/playground/playground.js:149
↓ 14 callersFunctionh
(a,b,c,d)
templates/playground/playground.js:1290
↓ 14 callersFunctionisEnumType
(type)
templates/playground/playground.js:649
↓ 14 callersFunctionisObjectType
(type)
templates/playground/playground.js:649
↓ 14 callersFunctionisUnionType
(type)
templates/playground/playground.js:649
↓ 14 callersFunctionnewTestEngineV1
(t *testing.T, options ...testEngineV1Option)
internal/graphengine/engine_v1_test.go:347
↓ 14 callersFunctionnopCloseRequestBody
(r *http.Request)
gateway/reverse_proxy.go:1852
↓ 14 callersFunctionprint
(ast)
templates/playground/playground.js:593
↓ 14 callersFunctionprintCharCode
(code)
templates/playground/playground.js:573
↓ 14 callersFunctionreportHealthValue
reportHealthValue is a shortcut we can use throughout the app to push a health check value
gateway/api_healthcheck.go:57
↓ 14 callersFunctionrunInOp
(cm,f)
templates/playground/playground.js:149
↓ 14 callersFunctiontestRunner
(t *testing.T, proxy *Proxy, hostname string, useSSL bool, testCases ...test.TCPTestCase)
tcp/tcp_test.go:200
↓ 13 callersMethodAdd
Add adds a certificate to the batch.
internal/certcheck/batcher.go:129
↓ 13 callersMethodExtractTo
(meta *apidef.MockResponseMeta)
apidef/oas/operation.go:847
↓ 13 callersMethodExtractTo
(jwt *apidef.JWTValidation)
apidef/oas/security.go:721
↓ 13 callersMethodFindAllString
FindAllString is the same as regexp.Regexp.FindAllString but returns cached result instead.
regexp/regexp.go:364
↓ 13 callersMethodGet
Get retrieves the value of a specific version parameter. Returns the string value of the parameter.
lib/apidef/version.go:100
↓ 13 callersMethodGetAndDeleteSet
(string)
storage/storage.go:43
↓ 13 callersFunctionGetDefinition
GetDefinition will return a deep copy of the API definition valid for the request.
ctx/ctx.go:128
↓ 13 callersMethodHandleReverseProxy
(params ReverseProxyParams)
internal/graphengine/engine.go:35
↓ 13 callersMethodHasCheckCooldown
(certID string)
internal/certcheck/cache.go:39
↓ 13 callersMethodInit
Init enables the init of event handler instances when they are created on ApiSpec creation
gateway/event_handler_webhooks.go:57
↓ 13 callersFunctionIsDNSMonitorRunning
IsDNSMonitorRunning returns whether the DNS monitor is currently running
rpc/dns_monitor.go:253
↓ 13 callersFunctionIsEmergencyMode
()
rpc/rpc_client.go:177
↓ 13 callersMethodLoadPoliciesFromDashboard
LoadPoliciesFromDashboard will connect and download Policies from a Tyk Dashboard instance.
gateway/policy.go:119
↓ 13 callersMethodName
Name returns the name of the validation rule.
apidef/streams/bento/schema/generate_bento_config_schema.go:26
↓ 13 callersFunctionNew
New creates a new cache instance.
internal/cache/repository.go:19
↓ 13 callersMethodServe
(l net.Listener)
tcp/tcp.go:154
↓ 13 callersMethodValidate
(apiDef *APIDefinition, validationResult *ValidationResult)
apidef/validator.go:78
↓ 13 callersMethodWrite
(_ context.Context, msg *service.Message)
internal/portal/portal_output.go:44
↓ 13 callersFunction__awaiter
(thisArg,_arguments,P,generator)
templates/playground/playground.js:233
↓ 13 callersFunctioncreateBatcherMocks
(t *testing.T)
internal/certcheck/batcher_test.go:1348
↓ 13 callersMethodgetHMACAuthChain
(spec *APISpec)
gateway/mw_http_signature_validation_test.go:83
↓ 13 callersMethodinternalGetAccessRights
()
coprocess/bindings/java/CoprocessSessionState.java:4258
↓ 13 callersMethodinternalGetAddParams
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:801
↓ 13 callersMethodinternalGetExtendedParams
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:877
↓ 13 callersMethodinternalGetHeaders
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:476
↓ 13 callersMethodinternalGetMetadata
()
coprocess/bindings/java/CoprocessObject.java:382
↓ 13 callersMethodinternalGetOauthKeys
()
coprocess/bindings/java/CoprocessSessionState.java:4402
↓ 13 callersMethodinternalGetParams
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:725
↓ 13 callersMethodinternalGetSetHeaders
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:552
↓ 13 callersMethodinternalGetSpec
()
coprocess/bindings/java/CoprocessObject.java:458
↓ 13 callersFunctionremoveChildrenAndAdd
(parent,e)
templates/playground/playground.js:149
↓ 13 callersFunctionrunValidationTest
(apiDef *APIDefinition, ruleSet ValidationRuleSet, expectedValidationResult ValidationResult)
apidef/validator_test.go:44
↓ 13 callersMethodsetTestMode
(v bool)
gateway/server.go:368
↓ 13 callersFunctiontoObjMap
(obj)
templates/playground/playground.js:549
↓ 13 callersFunctiontoStructIfMap
(input interface{}, val interface{})
apidef/oas/oasutil.go:10
↓ 13 callersFunctionzg
(a,b)
templates/playground/playground.js:1290
↓ 12 callersFunctionAuthFailed
TODO: move this method to base middleware?
gateway/mw_auth_key.go:267
↓ 12 callersFunctionDummyAPI
()
apidef/api_definitions.go:1454
↓ 12 callersFunctionHe
(a)
templates/playground/playground.js:1311
↓ 12 callersFunctionMj
(a,b)
templates/playground/playground.js:1290
↓ 12 callersFunctionNewSessionState
()
user/session.go:301
← previousnext →301–400 of 9,242, ranked by callers