MCPcopy Create free account

hub / github.com/TykTechnologies/tyk / functions

Functions9,242 in github.com/TykTechnologies/tyk

↓ 2 callersMethodFindAllSubmatch
FindAllSubmatch is the same as regexp.Regexp.FindAllSubmatch but returns cached result instead.
regexp/regexp.go:381
↓ 2 callersMethodFire
(sessionData *user.SessionState, key string, triggerLimit, usagePercentage float64)
gateway/monitor.go:18
↓ 2 callersMethodFireEvent
FireEvent is added to the BaseMiddleware object so it is available across the entire stack
gateway/middleware.go:588
↓ 2 callersMethodFirstError
()
apidef/validator.go:24
↓ 2 callersFunctionFj
()
templates/playground/playground.js:1311
↓ 2 callersMethodFlush
()
tcp/tcp.go:48
↓ 2 callersFunctionGatewayResourceAttributes
(gwID string, isDataplane bool, groupID string, isSegmented bool, segmentTags []string)
internal/otel/otel.go:106
↓ 2 callersFunctionGe
()
templates/playground/playground.js:1311
↓ 2 callersMethodGenerateAPIID
()
apidef/api_definitions.go:1422
↓ 2 callersMethodGenerateCheckerId
()
gateway/host_checker_manager.go:91
↓ 2 callersFunctionGenerateRSAPublicKey
GenerateRSAPublicKey generates an RSA public key.
internal/crypto/helpers.go:232
↓ 2 callersFunctionGenerateTestBinaryData
()
gateway/testutil.go:2001
↓ 2 callersMethodGet
(key string)
storage/kv/consul.go:23
↓ 2 callersMethodGetApiDefinitions
GetAPIDefinitions will pull API definitions from the RPC server
gateway/rpc_storage_handler.go:739
↓ 2 callersMethodGetCoProcessGrpcServerTargetURL
()
gateway/coprocess_grpc.go:27
↓ 2 callersMethodGetCustomPolicies
GetCustomPolicies is like CustomPolicies but returns the list, preserving order.
user/custom_policies.go:26
↓ 2 callersFunctionGetHTTPPaths
GetHTTPPaths is the main function to get HTTP paths from the stream configuration.
ee/middleware/streams/util.go:81
↓ 2 callersMethodGetKeyPrefix
GetPrefix returns storage key prefix
storage/redis_cluster.go:988
↓ 2 callersMethodGetLoadCounts
()
rpc/rpc_client.go:127
↓ 2 callersMethodGetLogs
GetLogs returns the logs that are stored in the buffer.
test/buffered_logger.go:48
↓ 2 callersMethodGetMultiKey
Returned string is expected to be a JSON object (user.SessionState)
storage/storage.go:22
↓ 2 callersMethodGetPolicies
GetPolicies will pull Policies from the RPC server
gateway/rpc_storage_handler.go:773
↓ 2 callersMethodGetSingleOrDefaultVersion
GetSingleOrDefaultVersion determines and returns a single version or the default version if only one or a default exists. Returns versionInfo and a bo
gateway/api_definition.go:1718
↓ 2 callersFunctionGetSymbol
(modulePath string, symbol string)
goplugin/goplugin.go:12
↓ 2 callersMethodGetTykStreamingExtension
()
apidef/oas/oas.go:125
↓ 2 callersFunctionGi
(a,b,c)
templates/playground/playground.js:1290
↓ 2 callersMethodGraphErrors
(response []byte)
internal/graphql/graphql_request.go:32
↓ 2 callersMethodGroupLoginCallback
GroupLoginCallback checks if the groupID key exists in the storage to turn on/off ForceSync param. If the the key doesn't exists in the storage, it cr
rpc/synchronization_forcer.go:51
↓ 2 callersFunctionHa
()
templates/playground/playground.js:1311
↓ 2 callersMethodHandleAuthorisation
HandleAuthorisation creates the authorisation data for the request
gateway/oauth_manager.go:350
↓ 2 callersMethodHandleDashboardResponseReadError
HandleDashboardResponseReadError checks if a read/decode error is recoverable (EOF-related) and attempts recovery if appropriate. Returns true if the
gateway/dashboard_recovery.go:91
↓ 2 callersMethodHasSchema
()
internal/graphengine/engine_v2.go:198
↓ 2 callersMethodHasSchema
()
internal/graphengine/engine_v1.go:124
↓ 2 callersMethodHash
(token string, sharedSecret string, timeStamp int64)
signature_validator/hash.go:20
↓ 2 callersFunctionHashStr
(in string, withAlg ...string)
internal/crypto/hash.go:36
↓ 2 callersFunctionHi
(a,b)
templates/playground/playground.js:1311
↓ 2 callersFunctionHj
(a,b)
templates/playground/playground.js:1311
↓ 2 callersFunctionHttpServerRunner
()
test/http.go:358
↓ 2 callersMethodImport
()
apidef/adapter/import_adapter.go:6
↓ 2 callersMethodImport
Import populates *JWT based on arguments.
apidef/oas/security.go:279
↓ 2 callersMethodImport
Import populates *Basic from it's arguments.
apidef/oas/security.go:453
↓ 2 callersMethodImport
Import populates *OAuth from it's arguments.
apidef/oas/security.go:587
↓ 2 callersMethodImportMiddlewares
(overRideValues TykExtensionConfigParams)
apidef/oas/default.go:230
↓ 2 callersMethodIncrLoadCounts
(n int)
rpc/rpc_client.go:119
↓ 2 callersFunctionInit
Init sets all flags and subcommands. It's only run once to avoid races over the globals. The arguments are ignored for subsequent runs.
cli/cli.go:60
↓ 2 callersMethodInit
()
gateway/mw_http_signature_validation.go:46
↓ 2 callersMethodInit
(spec *apidef.ServiceDiscoveryConfiguration, gw *Gateway)
gateway/service_discovery.go:30
↓ 2 callersMethodInit
()
gateway/mw_openid.go:41
↓ 2 callersMethodInitDNSCaching
(ttl, checkInterval time.Duration)
dnscache/manager.go:25
↓ 2 callersMethodInitTriggerRx
InitTriggerRx will go over all defined URLRewrite triggers and initialize them. It will skip disabled triggers, returning true if at least one trigger
gateway/mw_url_rewrite.go:400
↓ 2 callersFunctionInject
(service string, span opentracing.Span, h http.Header)
trace/manager.go:205
↓ 2 callersMethodInputValidation
(operation *graphql.Request)
internal/graphql/otel_graphql_engine_detailed.go:139
↓ 2 callersMethodIsBaseAPI
IsBaseAPI returns true if this API is a base API with child versions. A base API is identified by having versions defined and either no BaseID or Base
apidef/api_definitions.go:1441
↓ 2 callersMethodIsBaseAPIWithVersioning
IsBaseAPIWithVersioning returns true if this API is a base API with versioning explicitly enabled. This is similar to IsBaseAPI but additionally requi
apidef/api_definitions.go:1448
↓ 2 callersMethodIsCacheEnabled
()
dnscache/manager.go:65
↓ 2 callersMethodIsChildAPI
IsChildAPI returns true if this API is a child API in a versioning hierarchy. A child API is identified by having a BaseID that differs from its own A
apidef/api_definitions.go:1435
↓ 2 callersFunctionIsMuxTemplate
IsMuxTemplate determines if a pattern is a mux template by counting the number of opening and closing braces.
internal/httputil/mux.go:73
↓ 2 callersFunctionIsPublicKey
IsPublicKey verifies if given certificate is a public key only.
internal/crypto/helpers.go:152
↓ 2 callersFunctionIsRaceEnabled
()
test/race_on.go:6
↓ 2 callersFunctionIsSocketClosed
IsSocketClosed returns true if err is a result of reading from closed network connection
tcp/tcp.go:376
↓ 2 callersMethodIsUpgrade
IsUpgrade will return the upgrade header value and true if present for the request. It requires EnableWebSockets to be enabled in the gateway HTTP ser
gateway/reverse_proxy.go:1892
↓ 2 callersFunctionKb
(a,b)
templates/playground/playground.js:1311
↓ 2 callersFunctionKd
(a)
templates/playground/playground.js:1311
↓ 2 callersFunctionKe
(a)
templates/playground/playground.js:1290
↓ 2 callersMethodKeyHashEmpty
()
user/session.go:419
↓ 2 callersFunctionKg
(a,b,c,d,e,f,g)
templates/playground/playground.js:1311
↓ 2 callersFunctionLb
(a)
templates/playground/playground.js:1311
↓ 2 callersFunctionLc
(a,b)
templates/playground/playground.js:1311
↓ 2 callersFunctionLe
(a,b)
templates/playground/playground.js:1290
↓ 2 callersMethodLess
Less is used to implement sort interface.
user/session.go:195
↓ 2 callersFunctionLi
(a)
templates/playground/playground.js:1290
↓ 2 callersMethodListFromService
(apiID string)
gateway/host_checker_manager.go:435
↓ 2 callersMethodListWebhookCredentials
ListWebhookCredentials retrieves a list of apps and filters out their webhook credentials
internal/portal/portal_client.go:64
↓ 2 callersFunctionLoad
Load retusn a zipkin configuration from the opts.
trace/openzipkin/config.go:8
↓ 2 callersFunctionLoad
Load returns jaeger configuration from opts. Please see jaeger configuration for details about the key value pairs https://github.com/jaegertracing/j
trace/jaeger/config.go:12
↓ 2 callersMethodLoadAccess
LoadAccess will load access data from redis
gateway/oauth_manager.go:1041
↓ 2 callersMethodLoadConfFromMeta
(meta map[string]interface{})
gateway/ldap_auth_handler.go:21
↓ 2 callersMethodLoadDefinitionsFromRPCBackup
()
gateway/rpc_backup_handlers.go:29
↓ 2 callersMethodLoadJSPaths
LoadJSPaths will load JS classes and functionality in to the VM by file
gateway/mw_js_plugin.go:391
↓ 2 callersMethodLoadPoliciesFromRPCBackup
()
gateway/rpc_backup_handlers.go:83
↓ 2 callersMethodLocker
Locker implements a distributed lock.
internal/rate/model/interfaces.go:17
↓ 2 callersMethodLocker
Locker will ensure a distributed lock with redis, using redsync for a key. If redis is not in use, fallback is done to use the default locker.
internal/rate/limiter/limiter.go:36
↓ 2 callersMethodLogger
Logger implements a typical logger signature with service context.
internal/policy/apply.go:255
↓ 2 callersMethodLogger
Logger returns a logger with middleware filled out.
ee/middleware/upstreambasicauth/middleware.go:39
↓ 2 callersMethodLogger
Logger returns a logger with middleware filled out.
ee/middleware/upstreamoauth/middleware.go:45
↓ 2 callersMethodLookupIP
(ctx context.Context, host string)
rpc/dns_resolver.go:28
↓ 2 callersFunctionLoopingUrl
(host string)
gateway/mw_url_rewrite.go:501
↓ 2 callersFunctionMa
(a,b,c)
templates/playground/playground.js:1311
↓ 2 callersMethodMakeRequests
(batchRequest BatchRequestStructure, requestSet []*http.Request)
gateway/batch_requests.go:123
↓ 2 callersFunctionMatchPaths
MatchPaths matches regexp pattern with multiple request URLs endpoint paths. It will return true if any of them is correctly matched, with no error. I
internal/httputil/mux.go:131
↓ 2 callersFunctionMergeAllowedURLs
MergeAllowedURLs will merge s1 and s2 to produce a merged result. It maintains order of keys in s1 and s2 as they are seen. If the result is an empty
internal/policy/util.go:12
↓ 2 callersFunctionMh
(a,b,c)
templates/playground/playground.js:1290
↓ 2 callersMethodMilliseconds
Millisecond returns ReadableDuration in milliseconds.
internal/time/duration.go:82
↓ 2 callersMethodName
()
internal/model/interfaces.go:26
↓ 2 callersMethodName
Name returns the name for the middleware.
ee/middleware/upstreamoauth/middleware.go:50
↓ 2 callersFunctionNb
(a)
templates/playground/playground.js:1311
↓ 2 callersFunctionNe
()
templates/playground/playground.js:1290
↓ 2 callersFunctionNew
(orgID *string, storage model.PolicyProvider, logger *logrus.Logger)
internal/policy/apply.go:27
↓ 2 callersFunctionNewBaseMiddleware
NewBaseMiddleware creates a new *BaseMiddleware. The passed logrus.Entry is duplicated. BaseMiddleware keeps the pointer to *Gateway and *APISpec, as
gateway/middleware.go:256
↓ 2 callersFunctionNewBatch
NewBatch creates a new Batch.
internal/certcheck/batcher.go:33
← previousnext →2,201–2,300 of 9,242, ranked by callers