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
↓ 6 callers
Function
prepareMeasureForLine
(cm,line)
templates/playground/playground.js:149
↓ 6 callers
Function
printBlock
(items)
templates/playground/playground.js:741
↓ 6 callers
Function
printDeprecated
(reason)
templates/playground/playground.js:741
↓ 6 callers
Function
printErrorAndExit
(err error)
apidef/streams/bento/schema/generate_bento_config_schema.go:62
↓ 6 callers
Function
printWarning
()
templates/playground/playground.js:1190
↓ 6 callers
Function
recordDetail
(r *http.Request, spec *APISpec)
gateway/handler_success.go:351
↓ 6 callers
Function
register
(varname)
templates/playground/playground.js:153
↓ 6 callers
Function
replaceNamedType
(type)
templates/playground/playground.js:705
↓ 6 callers
Function
replaceRange
(doc,code,from,to,origin)
templates/playground/playground.js:149
↓ 6 callers
Function
replaceType
(type)
templates/playground/playground.js:705
↓ 6 callers
Function
requestIPHops
(r *http.Request)
gateway/reverse_proxy.go:1653
↓ 6 callers
Function
requestThrottlingTest
(limiter string, testLevel string)
gateway/mw_api_rate_limit_test.go:106
↓ 6 callers
Method
resetDashboardClient
resetDashboardClient resets the global dashboard client for tests
gateway/dashboard_register.go:63
↓ 6 callers
Function
rf
(a)
templates/playground/playground.js:1290
↓ 6 callers
Function
ri
(a)
templates/playground/playground.js:1290
↓ 6 callers
Function
selectLatestVersion
(versions []string)
dlpython/version.go:9
↓ 6 callers
Function
setup
(confPaths []string)
cli/cli.go:66
↓ 6 callers
Function
setupCertificateCheckMWIntegration
setupCertificateCheckMWIntegration creates a middleware instance for integration testing
gateway/mw_certificate_check_integration_test.go:89
↓ 6 callers
Function
setupGateway
()
coprocess/python/coprocess_python_test.go:233
↓ 6 callers
Function
setupStreamingAPIForOAS
(t *testing.T, ts *Test, tykStreamOAS *oas.OAS)
gateway/mw_streaming_amqp_test.go:106
↓ 6 callers
Function
setupTestDir
setupTestDir creates a temporary directory for testing and returns its path. It uses t.Cleanup to automatically remove the directory after the test.
internal/osutil/osutil_test.go:16
↓ 6 callers
Function
startTestServices
(tb testing.TB)
coprocess/grpc/services_test.go:24
↓ 6 callers
Function
stripFromCookieTest
(t *testing.T, req *http.Request, key string, sa StripAuth, value string, expected string)
gateway/mw_strip_auth_test.go:98
↓ 6 callers
Function
subscriptionClientFactoryOrDefault
(providedSubscriptionClientFactory graphqldatasource.GraphQLSubscriptionClientFactory)
apidef/adapter/gqlengineadapter/utils_engine_v2.go:140
↓ 6 callers
Function
testImportOAS
(t *testing.T, ts *Test, testCase test.TestCase)
gateway/api_test.go:3781
↓ 6 callers
Function
testPatchOAS
(t *testing.T, ts *Test, api oas.OAS, params map[string]string, apiID string)
gateway/api_test.go:3769
↓ 6 callers
Function
textHeight
(display)
templates/playground/playground.js:149
↓ 6 callers
Function
tg
(a,b)
templates/playground/playground.js:1290
↓ 6 callers
Function
th
()
templates/playground/playground.js:1311
↓ 6 callers
Function
updateScrollbars
(cm,measure)
templates/playground/playground.js:149
↓ 6 callers
Method
valueOf
@deprecated Use {@link #forNumber(int)} instead.
coprocess/bindings/java/CoprocessCommon.java:78
↓ 6 callers
Function
vc
(a)
templates/playground/playground.js:1290
↓ 6 callers
Function
verb
(n)
templates/playground/playground.js:233
↓ 6 callers
Function
withTestComplexityCheckerV1Schema
(schema string)
internal/graphengine/graphql_go_tools_v1_test.go:958
↓ 6 callers
Function
wj
()
templates/playground/playground.js:1290
↓ 6 callers
Function
writeManifestFile
(t testing.TB, manifest interface{}, filename string)
cli/bundler/bundler_test.go:47
↓ 6 callers
Function
xc
(a)
templates/playground/playground.js:1290
↓ 5 callers
Method
Add
Add adds c to the number of active connections.
internal/httputil/connection_watcher.go:37
↓ 5 callers
Method
AddDynamicHandler
(path string, handlerFunc http.HandlerFunc)
gateway/testutil.go:1131
↓ 5 callers
Function
Ai
(a,b,c)
templates/playground/playground.js:1290
↓ 5 callers
Method
Apply
Apply applies the validation rule to the provided input data and returns the processed data or an error if validation fails.
apidef/streams/bento/schema/generate_bento_config_schema.go:30
↓ 5 callers
Method
ApplyRateLimits
ApplyRateLimits will write policy limits to session and apiLimits. The limits get written if either are empty. The limits get written if filled and po
internal/policy/apply.go:262
↓ 5 callers
Function
Bc
(a,b)
templates/playground/playground.js:1290
↓ 5 callers
Function
Build
(opts ...BuilderOption)
internal/oasbuilder/builder.go:50
↓ 5 callers
Method
CheckHost
(toCheck HostData)
gateway/host_checker.go:219
↓ 5 callers
Method
ClientIsConnected
()
rpc/rpc_client.go:92
↓ 5 callers
Function
Clone
Clone is a hacky way to wrap the generic declaration. Using `var Clone = clone.Clone` is not allowed.
internal/reflect/clone.go:9
↓ 5 callers
Method
Clone
Clone returns a fresh copy of s
user/session.go:338
↓ 5 callers
Method
Close
Close stops the janitor from performing further cleanup operations. It is safe to call Close multiple times.
internal/cache/janitor.go:44
↓ 5 callers
Method
Connected
Connected returns true if we are connected to redis
storage/connection_handler.go:72
↓ 5 callers
Function
ContextWithSpan
(ctx context.Context, span tyktrace.Span)
internal/otel/otel.go:46
↓ 5 callers
Method
Count
Count returns the number of connections at the time the call.
internal/httputil/connection_watcher.go:32
↓ 5 callers
Method
CreateJWKClient
CreateJWKClient creates an HTTP client specifically configured for JWK endpoint requests. This method requires external services OAuth configuration t
gateway/external_http_client.go:46
↓ 5 callers
Method
CreateOAuthClient
CreateOAuthClient creates an HTTP client for OAuth requests (including upstream OAuth).
internal/httpclient/factory.go:95
↓ 5 callers
Method
DeleteAllKeys
DeleteAllKeys will remove all keys from the database.
storage/redis_cluster.go:518
↓ 5 callers
Method
DeleteKey
DeleteKey will remove a key from the database
storage/redis_cluster.go:496
↓ 5 callers
Method
DeleteKeys
DeleteKeys will remove a group of keys in bulk
storage/redis_cluster.go:583
↓ 5 callers
Method
DeleteRawKeys
(keys []string)
storage/redis_cluster.go:567
↓ 5 callers
Method
DepthLimitEnabled
(accessDef *user.AccessDefinition)
gateway/mw_graphql_complexity.go:77
↓ 5 callers
Function
Dj
()
templates/playground/playground.js:1311
↓ 5 callers
Method
Do
Do rewrite *gomock.Call.Do
internal/policy/store_mock.gen.go:69
↓ 5 callers
Method
Do
Do processes the rate limit smoothing based on the provided session settings and current rate. Internally it will get the current allowance, and if t
internal/rate/smoothing.go:40
↓ 5 callers
Method
Enabled
()
apidef/api_definitions.go:218
↓ 5 callers
Method
Enabled
()
gateway/middleware.go:710
↓ 5 callers
Method
ExtractTo
ExtractTo extracts *VirtualEndpoint to *apidef.VirtualMeta.
apidef/oas/middleware.go:1539
↓ 5 callers
Method
ExtractTo
ExtractTo extracts *TrafficLogs into *apidef.APIDefinition.
apidef/oas/middleware.go:1728
↓ 5 callers
Method
ExtractTo
ExtractTo extracts *Info into an *apidef.APIDefinition.
apidef/oas/root.go:102
↓ 5 callers
Function
ExtractTraceID
(ctx context.Context)
internal/otel/otel.go:144
↓ 5 callers
Method
Fill
Fill fills *Authentication from apidef.APIDefinition.
apidef/oas/authentication.go:145
↓ 5 callers
Method
Fill
Fill fills *VirtualEndpoint from apidef.VirtualMeta.
apidef/oas/middleware.go:1525
↓ 5 callers
Function
FillEnv
FillEnv will inspect the environment and fill the config.
config/config.go:1514
↓ 5 callers
Method
ForwardMessage
ForwardMessage will enforce rate limiting, returning a non-zero sessionFailReason if session limits have been exceeded. Key values to manage rate are
gateway/session_manager.go:281
↓ 5 callers
Method
GenerateTykServers
GenerateTykServers generates and returns only Tyk-managed server URLs for an API. This is a convenience method that generates servers without modifyin
apidef/oas/servers_regeneration.go:103
↓ 5 callers
Method
Get
Get returns non expired item from cache
dnscache/storage.go:48
↓ 5 callers
Method
GetAndDeleteSet
(keyName string)
storage/redis_cluster.go:667
↓ 5 callers
Method
GetEventsByType
(eventType apidef.TykEvent)
gateway/mw_certificate_check_integration_test.go:74
↓ 5 callers
Method
GetIndex
(i int)
apidef/host_list.go:36
↓ 5 callers
Method
GetKeys
Returns expiry of a key
storage/storage.go:28
↓ 5 callers
Method
GetKeys
GetKeys will return all keys according to the filter (filter is a prefix - e.g. tyk.keys.*)
storage/redis_cluster.go:442
↓ 5 callers
Method
GetListRange
(string, int64, int64)
storage/storage.go:50
↓ 5 callers
Method
GetSortedSetRange
(string, string, string)
storage/storage.go:48
↓ 5 callers
Method
GetStorageForApi
(apiID string)
gateway/api.go:2969
↓ 5 callers
Function
GetTLSConfig
(cert *tls.Certificate, caCert []byte)
gateway/testutil.go:1420
↓ 5 callers
Method
Hash
(token string, sharedSecret string, timeStamp int64)
signature_validator/hash.go:32
↓ 5 callers
Function
Ib
()
templates/playground/playground.js:1290
↓ 5 callers
Function
IsDnsRecordsAddrsEqualsTo
(itemAddrs, addrs []string)
test/dns.go:224
↓ 5 callers
Function
IsSelfLooping
IsSelfLooping returns true if the request is flagged as self-looping, indicating it originates and targets the same service.
internal/httpctx/looping.go:17
↓ 5 callers
Function
IsUpgrade
IsUpgrade checks if the request is an upgrade request and returns the upgrade type.
internal/httputil/streaming.go:25
↓ 5 callers
Method
Items
Items returns map of non expired dns cache items
dnscache/storage.go:32
↓ 5 callers
Method
KeyHash
()
user/session.go:407
↓ 5 callers
Function
Kh
(a)
templates/playground/playground.js:1290
↓ 5 callers
Function
Ki
()
templates/playground/playground.js:1290
↓ 5 callers
Function
Kj
(a,b)
templates/playground/playground.js:1290
↓ 5 callers
Method
LoadPoliciesFromRPC
(store RPCDataLoader, orgId string)
gateway/policy.go:223
↓ 5 callers
Method
Lock
Lock implements a distributed lock in a cluster.
storage/redis_cluster.go:381
↓ 5 callers
Method
MakeSpec
MakeSpec will generate a flattened URLSpec from and APIDefinitions' VersionInfo data. paths are keyed to the Api version name, which is determined dur
gateway/api_definition.go:253
↓ 5 callers
Method
Map
Map will return an allowance as a map.
internal/rate/model/allowance.go:57
↓ 5 callers
Function
MatchString
MatchString is the same as regexp.MatchString but returns cached result instead.
regexp/regexp.go:79
↓ 5 callers
Function
Mc
(a,b,c,d,e,f)
templates/playground/playground.js:1311
↓ 5 callers
Function
Mi
(a,b)
templates/playground/playground.js:1290
← previous
next →
901–1,000 of 9,242, ranked by callers