Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TykTechnologies/tyk
/ functions
Functions
9,242 in github.com/TykTechnologies/tyk
⨍
Functions
9,242
◇
Types & classes
1,202
↓ 22 callers
Function
FuncClientSingleton
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 callers
Method
ReplaceAll
ReplaceAll is the same as regexp.Regexp.ReplaceAll but returns cached result instead.
regexp/regexp.go:214
↓ 22 callers
Method
Storage
()
gateway/api_definition.go:148
↓ 22 callers
Function
Z
(a)
templates/playground/playground.js:1311
↓ 22 callers
Function
__assign
()
templates/playground/playground.js:185
↓ 22 callers
Function
addDescription
(cb)
templates/playground/playground.js:593
↓ 22 callers
Function
block
(type)
templates/playground/playground.js:153
↓ 22 callers
Function
kw
(type)
templates/playground/playground.js:153
↓ 22 callers
Function
rd
(a)
templates/playground/playground.js:1290
↓ 21 callers
Function
Compile
Compile does the same as regexp.Compile but returns cached *Regexp instead.
regexp/regexp.go:51
↓ 21 callers
Method
Config
()
gateway/middleware.go:55
↓ 21 callers
Method
Fill
Fill fills *OAS definition from apidef.APIDefinition.
apidef/oas/oas.go:73
↓ 21 callers
Method
IsEmpty
IsEmpty checks if APILimit is empty.
user/session.go:119
↓ 21 callers
Method
RegisterBundle
(name string, files map[string]string)
gateway/testutil.go:304
↓ 21 callers
Method
Remove
Remove file which is inside root path.
internal/osutil/osutil.go:67
↓ 21 callers
Function
e
(a,b)
templates/playground/playground.js:1290
↓ 21 callers
Method
findMiddlewareByType
(example TykMiddleware)
gateway/mw_auth_or_wrapper.go:227
↓ 21 callers
Method
generateRegex
(stringSpec string, newSpec *URLSpec, specType URLStatus, conf config.Config)
gateway/api_definition.go:745
↓ 21 callers
Function
getCertificateIDForHost
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 callers
Method
getDefaultInstance
()
coprocess/bindings/java/CoprocessObject.java:2056
↓ 21 callers
Method
getTykSecuritySchemes
()
apidef/oas/oas.go:387
↓ 21 callers
Function
ret
(tp,style,cont)
templates/playground/playground.js:153
↓ 20 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/graphql/execution_engine_mock.go:39
↓ 20 callers
Function
Hg
()
templates/playground/playground.js:1290
↓ 20 callers
Method
List
(certIDs []string, mode CertificateType)
certs/manager.go:43
↓ 20 callers
Function
NewMockExecutionEngineI
NewMockExecutionEngineI creates a new mock instance.
internal/graphql/execution_engine_mock.go:32
↓ 20 callers
Function
NormalisePath
(a *analytics.AnalyticsRecord, globalConfig *config.Config)
gateway/analytics.go:236
↓ 20 callers
Method
PolicyIDs
()
internal/model/interfaces.go:48
↓ 20 callers
Method
Reset
Reset returns when the bucket will be drained.
internal/model/bucket.go:22
↓ 20 callers
Method
SetEmergencyMode
(n bool)
rpc/rpc_client.go:134
↓ 20 callers
Function
assertPanic
assertPanic checks if the provided function f panics. It fails the test if no panic occurs.
storage/dummy_test.go:12
↓ 20 callers
Function
ig
()
templates/playground/playground.js:1290
↓ 20 callers
Method
mergeFrom
(com.google.protobuf.Message other)
coprocess/bindings/java/CoprocessObject.java:1927
↓ 20 callers
Method
parseFrom
( com.google.protobuf.ByteString data)
coprocess/bindings/java/CoprocessSessionState.java:2732
↓ 19 callers
Method
CheckSpecMatchesStatus
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 callers
Method
GetNodeID
GetNodeID reads NodeID safely.
gateway/server.go:355
↓ 19 callers
Method
LoadTestOAuthSpec
()
gateway/oauth_manager_test.go:121
↓ 19 callers
Function
Login
Login tries to login to the rpc sever. Returns true if it succeeds and false if it fails.
rpc/rpc_client.go:378
↓ 19 callers
Method
Read
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 callers
Method
RegenerateServers
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 callers
Function
createTLSConfig
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 callers
Function
docMethodOp
(f)
templates/playground/playground.js:149
↓ 19 callers
Function
loadOrCreateJWKCacheByApiID
(apiID string)
gateway/mw_jwt.go:139
↓ 19 callers
Function
n
(a,b,c,d,f)
templates/playground/playground.js:1290
↓ 19 callers
Function
operation
(cm,f)
templates/playground/playground.js:149
↓ 19 callers
Function
signal
(emitter,type)
templates/playground/playground.js:149
↓ 19 callers
Function
signalDOMEvent
(cm,e,override)
templates/playground/playground.js:149
↓ 19 callers
Function
syntaxError
(message)
templates/playground/playground.js:77
↓ 18 callers
Method
AddDomainHandler
(domain, target string, modifier *Modifier)
tcp/tcp.go:80
↓ 18 callers
Method
CheckGraphQLRequestFieldAllowance
(w http.ResponseWriter, r *http.Request, accessDefinition *GranularAccessDefinition)
internal/graphengine/engine.go:84
↓ 18 callers
Method
DisableStorage
DisableStorage allows to dynamically enable/disable talking with storage
storage/connection_handler.go:51
↓ 18 callers
Function
EmitErrorEventKv
(jobName string, funcName string, err error, kv map[string]string)
rpc/rpc_client.go:212
↓ 18 callers
Method
Exists
(string)
storage/storage.go:53
↓ 18 callers
Method
FireEvent
(name apidef.TykEvent, meta interface{})
ee/middleware/upstreamoauth/model.go:23
↓ 18 callers
Method
Index
Index returns the cardinal order for the value. Used for sorting.
apidef/oas/url_rewrite.go:266
↓ 18 callers
Method
Key
Returns content of internal buffer, converted to string. Safe for using as key for storing item, immutable
regexp/keybuilder.go:30
↓ 18 callers
Function
O
(a)
templates/playground/playground.js:1319
↓ 18 callers
Method
ProcessRequest
(ctx context.Context, w http.ResponseWriter, r *http.Request)
internal/graphengine/engine.go:62
↓ 18 callers
Method
SetCheckCooldown
(certID string, checkCooldownInSeconds int64)
internal/certcheck/cache.go:41
↓ 18 callers
Method
String
()
apidef/oas/operation.go:563
↓ 18 callers
Method
Type
Type returns the message type.
gateway/testutil.go:2075
↓ 18 callers
Function
baseAPIHeader
(id string)
gateway/api_test.go:2585
↓ 18 callers
Method
build
()
coprocess/bindings/java/CoprocessSessionState.java:2859
↓ 18 callers
Function
d
(a,b)
templates/playground/playground.js:1290
↓ 18 callers
Method
format
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 callers
Method
generateSession
(algo, data string)
gateway/mw_request_signing_test.go:42
↓ 18 callers
Function
isInterfaceType
(type)
templates/playground/playground.js:649
↓ 18 callers
Method
kv
()
storage/redis_cluster.go:94
↓ 18 callers
Function
signalLater
(emitter,type)
templates/playground/playground.js:149
↓ 17 callers
Method
DepthLimitExceeded
(r *http.Request, accessDefinition *ComplexityAccessDefinition)
internal/graphengine/engine.go:58
↓ 17 callers
Method
Execute
(wr io.Writer, data interface{})
gateway/handler_error.go:87
↓ 17 callers
Method
GetId
()
gateway/oauth_manager.go:62
↓ 17 callers
Function
HexSHA256
HexSHA256 calculates the SHA256 hash of the provided certificate bytes and returns the result as a hexadecimal string.
internal/crypto/helpers.go:36
↓ 17 callers
Method
IsRetriableError
(err error)
gateway/rpc_storage_handler.go:723
↓ 17 callers
Function
Load
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 callers
Function
NewOtelGraphqlEngineV2Detailed
* 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 callers
Function
NewRedisCooldownCache
NewRedisCooldownCache creates a new RedisCooldownCache.
internal/certcheck/cache.go:168
↓ 17 callers
Method
Seconds
Seconds returns ReadableDuration rounded down to the seconds.
internal/time/duration.go:76
↓ 17 callers
Method
SetDNSCheckedAfterError
(checked bool)
rpc/rpc_client.go:79
↓ 17 callers
Function
_createClass
(Constructor,protoProps,staticProps)
templates/playground/playground.js:649
↓ 17 callers
Method
cacheCreate
cacheCreate will create the caches in *Gateway.
gateway/server.go:260
↓ 17 callers
Function
commasep
(what,end,sep)
templates/playground/playground.js:153
↓ 17 callers
Method
createTestOAuthClient
(spec *APISpec, clientID string)
gateway/oauth_manager_test.go:125
↓ 17 callers
Method
generateSpec
(algo string, data string, sessionKey string, headerList []string)
gateway/mw_request_signing_test.go:56
↓ 17 callers
Method
getMiddlewareChain
(spec *APISpec)
gateway/mw_request_signing_test.go:27
↓ 17 callers
Function
indexOf
(array,elt)
templates/playground/playground.js:149
↓ 17 callers
Method
isProprietaryAuthScheme
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 callers
Function
newTestEngineV2
(t *testing.T, options ...testEngineV2Option)
internal/graphengine/engine_v2_test.go:421
↓ 17 callers
Method
prepareExtractor
(tb testing.TB, extractorSource apidef.IdExtractorSource, extractorType apidef.IdExtractorType, config map[str
gateway/coprocess_id_extractor_test.go:52
↓ 17 callers
Function
word
(value)
templates/playground/playground.js:385
↓ 16 callers
Method
ApplyPolicies
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 callers
Method
CheckSessionAndIdentityForValidKey
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 callers
Method
DeleteAllKeys
()
storage/storage.go:30
↓ 16 callers
Method
End
(options ...trace.SpanEndOption)
internal/graphql/otel_graphql_engine_detailed_test.go:449
↓ 16 callers
Function
Ff
(a)
templates/playground/playground.js:1290
↓ 16 callers
Function
Ig
(a)
templates/playground/playground.js:1290
↓ 16 callers
Method
MigrateVersioning
()
apidef/migration.go:24
↓ 16 callers
Function
New
New produces a new config object by parsing the default configuration for the values.
config/util.go:15
↓ 16 callers
Function
NewCertificateExpiryCheckBatcher
NewCertificateExpiryCheckBatcher creates a new CertificateExpiryCheckBatcher.
internal/certcheck/batcher.go:101
↓ 16 callers
Method
ReplaceAllString
ReplaceAllString is the same as regexp.Regexp.ReplaceAllString but returns cached result instead.
regexp/regexp.go:190
← previous
next →
201–300 of 9,242, ranked by callers