MCPcopy Create free account

hub / github.com/TykTechnologies/tyk / functions

Functions9,242 in github.com/TykTechnologies/tyk

↓ 22 callersFunctionFuncClientSingleton
FuncClientSingleton performs RPC call. This might be called before we have established RPC connection, in that case we perform a retry with exponentia
rpc/rpc_client.go:525
↓ 22 callersMethodReplaceAll
ReplaceAll is the same as regexp.Regexp.ReplaceAll but returns cached result instead.
regexp/regexp.go:214
↓ 22 callersMethodStorage
()
gateway/api_definition.go:148
↓ 22 callersFunctionZ
(a)
templates/playground/playground.js:1311
↓ 22 callersFunction__assign
()
templates/playground/playground.js:185
↓ 22 callersFunctionaddDescription
(cb)
templates/playground/playground.js:593
↓ 22 callersFunctionblock
(type)
templates/playground/playground.js:153
↓ 22 callersFunctionkw
(type)
templates/playground/playground.js:153
↓ 22 callersFunctionrd
(a)
templates/playground/playground.js:1290
↓ 21 callersFunctionCompile
Compile does the same as regexp.Compile but returns cached *Regexp instead.
regexp/regexp.go:51
↓ 21 callersMethodConfig
()
gateway/middleware.go:55
↓ 21 callersMethodFill
Fill fills *OAS definition from apidef.APIDefinition.
apidef/oas/oas.go:73
↓ 21 callersMethodIsEmpty
IsEmpty checks if APILimit is empty.
user/session.go:119
↓ 21 callersMethodRegisterBundle
(name string, files map[string]string)
gateway/testutil.go:304
↓ 21 callersMethodRemove
Remove file which is inside root path.
internal/osutil/osutil.go:67
↓ 21 callersFunctione
(a,b)
templates/playground/playground.js:1290
↓ 21 callersMethodfindMiddlewareByType
(example TykMiddleware)
gateway/mw_auth_or_wrapper.go:227
↓ 21 callersMethodgenerateRegex
(stringSpec string, newSpec *URLSpec, specType URLStatus, conf config.Config)
gateway/api_definition.go:745
↓ 21 callersFunctiongetCertificateIDForHost
getCertificateIDForHost returns the certificate ID that matches the given host from the provided certificate maps. It tries multiple matching patterns
gateway/cert.go:82
↓ 21 callersMethodgetDefaultInstance
()
coprocess/bindings/java/CoprocessObject.java:2056
↓ 21 callersMethodgetTykSecuritySchemes
()
apidef/oas/oas.go:387
↓ 21 callersFunctionret
(tp,style,cont)
templates/playground/playground.js:153
↓ 20 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/graphql/execution_engine_mock.go:39
↓ 20 callersFunctionHg
()
templates/playground/playground.js:1290
↓ 20 callersMethodList
(certIDs []string, mode CertificateType)
certs/manager.go:43
↓ 20 callersFunctionNewMockExecutionEngineI
NewMockExecutionEngineI creates a new mock instance.
internal/graphql/execution_engine_mock.go:32
↓ 20 callersFunctionNormalisePath
(a *analytics.AnalyticsRecord, globalConfig *config.Config)
gateway/analytics.go:236
↓ 20 callersMethodPolicyIDs
()
internal/model/interfaces.go:48
↓ 20 callersMethodReset
Reset returns when the bucket will be drained.
internal/model/bucket.go:22
↓ 20 callersMethodSetEmergencyMode
(n bool)
rpc/rpc_client.go:134
↓ 20 callersFunctionassertPanic
assertPanic checks if the provided function f panics. It fails the test if no panic occurs.
storage/dummy_test.go:12
↓ 20 callersFunctionig
()
templates/playground/playground.js:1290
↓ 20 callersMethodmergeFrom
(com.google.protobuf.Message other)
coprocess/bindings/java/CoprocessObject.java:1927
↓ 20 callersMethodparseFrom
( com.google.protobuf.ByteString data)
coprocess/bindings/java/CoprocessSessionState.java:2732
↓ 19 callersMethodCheckSpecMatchesStatus
CheckSpecMatchesStatus checks if a URL spec has a specific status. Deprecated: The function doesn't follow go return conventions (T, ok); use FindSpec
gateway/model_apispec.go:70
↓ 19 callersMethodGetNodeID
GetNodeID reads NodeID safely.
gateway/server.go:355
↓ 19 callersMethodLoadTestOAuthSpec
()
gateway/oauth_manager_test.go:121
↓ 19 callersFunctionLogin
Login tries to login to the rpc sever. Returns true if it succeeds and false if it fails.
rpc/rpc_client.go:378
↓ 19 callersMethodRead
Read just a wrapper around real Read which also moves position to the start if we get EOF to have it ready for next read-cycle
gateway/reverse_proxy.go:1675
↓ 19 callersMethodRegenerateServers
RegenerateServers updates the servers section of an OAS API definition 1. Computes old Tyk-generated servers from oldAPIData state (if provided) 2. Re
apidef/oas/servers_regeneration.go:45
↓ 19 callersFunctioncreateTLSConfig
createTLSConfig creates a TLS configuration with proper mTLS support It prioritizes external services storage configuration over legacy storage config
internal/rate/storage.go:64
↓ 19 callersFunctiondocMethodOp
(f)
templates/playground/playground.js:149
↓ 19 callersFunctionloadOrCreateJWKCacheByApiID
(apiID string)
gateway/mw_jwt.go:139
↓ 19 callersFunctionn
(a,b,c,d,f)
templates/playground/playground.js:1290
↓ 19 callersFunctionoperation
(cm,f)
templates/playground/playground.js:149
↓ 19 callersFunctionsignal
(emitter,type)
templates/playground/playground.js:149
↓ 19 callersFunctionsignalDOMEvent
(cm,e,override)
templates/playground/playground.js:149
↓ 19 callersFunctionsyntaxError
(message)
templates/playground/playground.js:77
↓ 18 callersMethodAddDomainHandler
(domain, target string, modifier *Modifier)
tcp/tcp.go:80
↓ 18 callersMethodCheckGraphQLRequestFieldAllowance
(w http.ResponseWriter, r *http.Request, accessDefinition *GranularAccessDefinition)
internal/graphengine/engine.go:84
↓ 18 callersMethodDisableStorage
DisableStorage allows to dynamically enable/disable talking with storage
storage/connection_handler.go:51
↓ 18 callersFunctionEmitErrorEventKv
(jobName string, funcName string, err error, kv map[string]string)
rpc/rpc_client.go:212
↓ 18 callersMethodExists
(string)
storage/storage.go:53
↓ 18 callersMethodFireEvent
(name apidef.TykEvent, meta interface{})
ee/middleware/upstreamoauth/model.go:23
↓ 18 callersMethodIndex
Index returns the cardinal order for the value. Used for sorting.
apidef/oas/url_rewrite.go:266
↓ 18 callersMethodKey
Returns content of internal buffer, converted to string. Safe for using as key for storing item, immutable
regexp/keybuilder.go:30
↓ 18 callersFunctionO
(a)
templates/playground/playground.js:1319
↓ 18 callersMethodProcessRequest
(ctx context.Context, w http.ResponseWriter, r *http.Request)
internal/graphengine/engine.go:62
↓ 18 callersMethodSetCheckCooldown
(certID string, checkCooldownInSeconds int64)
internal/certcheck/cache.go:41
↓ 18 callersMethodString
()
apidef/oas/operation.go:563
↓ 18 callersMethodType
Type returns the message type.
gateway/testutil.go:2075
↓ 18 callersFunctionbaseAPIHeader
(id string)
gateway/api_test.go:2585
↓ 18 callersMethodbuild
()
coprocess/bindings/java/CoprocessSessionState.java:2859
↓ 18 callersFunctiond
(a,b)
templates/playground/playground.js:1290
↓ 18 callersMethodformat
formats time duration dur to validation pattern ^(\d+h)?(\d+m)?(\d+s)?(\d+ms)?(\d+µs)?(\d+ns)%
internal/time/duration.go:97
↓ 18 callersMethodgenerateSession
(algo, data string)
gateway/mw_request_signing_test.go:42
↓ 18 callersFunctionisInterfaceType
(type)
templates/playground/playground.js:649
↓ 18 callersMethodkv
()
storage/redis_cluster.go:94
↓ 18 callersFunctionsignalLater
(emitter,type)
templates/playground/playground.js:149
↓ 17 callersMethodDepthLimitExceeded
(r *http.Request, accessDefinition *ComplexityAccessDefinition)
internal/graphengine/engine.go:58
↓ 17 callersMethodExecute
(wr io.Writer, data interface{})
gateway/handler_error.go:87
↓ 17 callersMethodGetId
()
gateway/oauth_manager.go:62
↓ 17 callersFunctionHexSHA256
HexSHA256 calculates the SHA256 hash of the provided certificate bytes and returns the result as a hexadecimal string.
internal/crypto/helpers.go:36
↓ 17 callersMethodIsRetriableError
(err error)
gateway/rpc_storage_handler.go:723
↓ 17 callersFunctionLoad
Load will load a configuration file, trying each of the paths given and using the first one that is a regular file and can be opened. If none exists,
config/config.go:1473
↓ 17 callersFunctionNewOtelGraphqlEngineV2Detailed
* NewOtelGraphqlEngineV2Detailed creates a new instance of OtelGraphqlEngineV2Detailed. It takes a tracer provider, an execution engine, and a GraphQL
internal/graphql/otel_graphql_engine_detailed.go:166
↓ 17 callersFunctionNewRedisCooldownCache
NewRedisCooldownCache creates a new RedisCooldownCache.
internal/certcheck/cache.go:168
↓ 17 callersMethodSeconds
Seconds returns ReadableDuration rounded down to the seconds.
internal/time/duration.go:76
↓ 17 callersMethodSetDNSCheckedAfterError
(checked bool)
rpc/rpc_client.go:79
↓ 17 callersFunction_createClass
(Constructor,protoProps,staticProps)
templates/playground/playground.js:649
↓ 17 callersMethodcacheCreate
cacheCreate will create the caches in *Gateway.
gateway/server.go:260
↓ 17 callersFunctioncommasep
(what,end,sep)
templates/playground/playground.js:153
↓ 17 callersMethodcreateTestOAuthClient
(spec *APISpec, clientID string)
gateway/oauth_manager_test.go:125
↓ 17 callersMethodgenerateSpec
(algo string, data string, sessionKey string, headerList []string)
gateway/mw_request_signing_test.go:56
↓ 17 callersMethodgetMiddlewareChain
(spec *APISpec)
gateway/mw_request_signing_test.go:27
↓ 17 callersFunctionindexOf
(array,elt)
templates/playground/playground.js:149
↓ 17 callersMethodisProprietaryAuthScheme
isProprietaryAuthScheme checks if a security scheme name refers to Tyk proprietary auth. It identifies proprietary schemes by checking: 1. Known propr
apidef/oas/security.go:949
↓ 17 callersFunctionnewTestEngineV2
(t *testing.T, options ...testEngineV2Option)
internal/graphengine/engine_v2_test.go:421
↓ 17 callersMethodprepareExtractor
(tb testing.TB, extractorSource apidef.IdExtractorSource, extractorType apidef.IdExtractorType, config map[str
gateway/coprocess_id_extractor_test.go:52
↓ 17 callersFunctionword
(value)
templates/playground/playground.js:385
↓ 16 callersMethodApplyPolicies
ApplyPolicies will check if any policies are loaded. If any are, it will overwrite the session state to use the policy values.
gateway/middleware.go:433
↓ 16 callersMethodCheckSessionAndIdentityForValidKey
CheckSessionAndIdentityForValidKey will check first the Session store for a valid key, if not found, it will try the Auth Handler, if not found it wil
gateway/middleware.go:488
↓ 16 callersMethodDeleteAllKeys
()
storage/storage.go:30
↓ 16 callersMethodEnd
(options ...trace.SpanEndOption)
internal/graphql/otel_graphql_engine_detailed_test.go:449
↓ 16 callersFunctionFf
(a)
templates/playground/playground.js:1290
↓ 16 callersFunctionIg
(a)
templates/playground/playground.js:1290
↓ 16 callersMethodMigrateVersioning
()
apidef/migration.go:24
↓ 16 callersFunctionNew
New produces a new config object by parsing the default configuration for the values.
config/util.go:15
↓ 16 callersFunctionNewCertificateExpiryCheckBatcher
NewCertificateExpiryCheckBatcher creates a new CertificateExpiryCheckBatcher.
internal/certcheck/batcher.go:101
↓ 16 callersMethodReplaceAllString
ReplaceAllString is the same as regexp.Regexp.ReplaceAllString but returns cached result instead.
regexp/regexp.go:190
← previousnext →201–300 of 9,242, ranked by callers