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
↓ 16 callers
Method
TykNewSingleHostReverseProxy
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 callers
Function
calculateLifetime
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 callers
Function
createRedisStorageMock
(t *testing.T)
internal/certcheck/cache_test.go:461
↓ 16 callers
Function
getToken
(t *testing.T, ts *Test)
gateway/oauth_manager_test.go:979
↓ 16 callers
Method
grpcError
(object *coprocess.Object, errorMsg string)
coprocess/grpc/dispatcher_test.go:14
↓ 16 callers
Function
isNonNullType
(type)
templates/playground/playground.js:649
↓ 16 callers
Function
methodOp
(f)
templates/playground/playground.js:149
↓ 16 callers
Function
ownKeys
(object,enumerableOnly)
templates/playground/playground.js:705
↓ 16 callers
Function
setSelection
(doc,sel,options)
templates/playground/playground.js:149
↓ 15 callers
Method
DeleteKey
(string)
storage/storage.go:29
↓ 15 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
storage/mock/storage.go:38
↓ 15 callers
Method
ExtractTo
ExtractTo extracts *HMAC to *apidef.APIDefinition.
apidef/oas/authentication.go:619
↓ 15 callers
Method
Filter
Filter, if enabled=true, will filter the internal api definitions by their tags.
internal/model/merged_apis.go:46
↓ 15 callers
Method
IsCheckCooldownActive
(certID string)
internal/certcheck/cache.go:40
↓ 15 callers
Function
IsMTLSError
IsMTLSError checks if the error is related to mTLS certificate loading
internal/httpclient/factory.go:31
↓ 15 callers
Function
J
(a)
templates/playground/playground.js:1298
↓ 15 callers
Method
Logger
Logger is used by middleware process functions.
gateway/middleware.go:307
↓ 15 callers
Method
MarshalJSON
MarshalJSON implements json.Marshaller.
apidef/oas/oas.go:40
↓ 15 callers
Function
MigrateAndFillOAS
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 callers
Method
Nanoseconds
Nanoseconds returns ReadableDuration in nanoseconds.
internal/time/duration.go:87
↓ 15 callers
Method
Notify
Notify will send a notification to a channel
gateway/redis_signals.go:242
↓ 15 callers
Method
String
String implements fmt.Stringer for the version info.
cli/version/version.go:41
↓ 15 callers
Method
Tracer
()
internal/graphql/otel_graphql_engine_detailed_test.go:409
↓ 15 callers
Function
errorAndStatusCode
(errType string)
gateway/handler_error.go:42
↓ 15 callers
Function
fi
(a,b,c,d)
templates/playground/playground.js:1290
↓ 15 callers
Function
g
(b)
templates/playground/playground.js:1290
↓ 15 callers
Function
gg
(a,b)
templates/playground/playground.js:1290
↓ 15 callers
Function
mockFromOAS
(r *http.Request, operation *openapi3.Operation, fromOASExamples *oas.FromOASExamples)
gateway/mw_mock_response.go:154
↓ 15 callers
Function
nh
(a,b,c,d)
templates/playground/playground.js:1290
↓ 15 callers
Function
regChange
(cm,from,to,lendiff)
templates/playground/playground.js:149
↓ 15 callers
Method
reportLoginFailure
(tykId string, r *http.Request)
gateway/mw_jwt.go:1045
↓ 15 callers
Function
setCustomHeader
(h http.Header, key string, value string, ignoreCanonical bool)
gateway/reverse_proxy.go:474
↓ 15 callers
Function
testGetOASAPI
(t *testing.T, d *Test, id, name, title string)
gateway/api_test.go:3740
↓ 15 callers
Function
testUpdateAPI
(t *testing.T, ts *Test, api interface{}, apiID string, oasTyped bool)
gateway/api_test.go:3724
↓ 15 callers
Method
toBuilder
()
coprocess/bindings/java/CoprocessSessionState.java:2798
↓ 14 callers
Method
Create
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 callers
Method
DeleteScanMatch
DeleteKeys will remove a group of keys in bulk
storage/redis_cluster.go:551
↓ 14 callers
Function
DurationToMillisecond
(d time.Duration)
gateway/analytics.go:232
↓ 14 callers
Function
Gg
(a,b,c,d)
templates/playground/playground.js:1290
↓ 14 callers
Method
IsEmpty
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 callers
Function
NewInMemoryCooldownCache
NewInMemoryCooldownCache creates a new InMemoryCooldownCache.
internal/certcheck/cache.go:69
↓ 14 callers
Function
R
(a,b,c,d)
templates/playground/playground.js:1311
↓ 14 callers
Method
Start
(ctx context.Context)
gateway/host_checker.go:410
↓ 14 callers
Function
StripListenPath
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 callers
Function
ValidatePath
ValidatePath validates if the path is valid. Returns an error.
internal/httputil/mux.go:66
↓ 14 callers
Function
_defineProperty
(obj,key,value)
templates/playground/playground.js:705
↓ 14 callers
Function
ctxGetRequestStatus
(r *http.Request)
gateway/api.go:3455
↓ 14 callers
Function
e_preventDefault
(e)
templates/playground/playground.js:149
↓ 14 callers
Function
h
(a,b,c,d)
templates/playground/playground.js:1290
↓ 14 callers
Function
isEnumType
(type)
templates/playground/playground.js:649
↓ 14 callers
Function
isObjectType
(type)
templates/playground/playground.js:649
↓ 14 callers
Function
isUnionType
(type)
templates/playground/playground.js:649
↓ 14 callers
Function
newTestEngineV1
(t *testing.T, options ...testEngineV1Option)
internal/graphengine/engine_v1_test.go:347
↓ 14 callers
Function
nopCloseRequestBody
(r *http.Request)
gateway/reverse_proxy.go:1852
↓ 14 callers
Function
print
(ast)
templates/playground/playground.js:593
↓ 14 callers
Function
printCharCode
(code)
templates/playground/playground.js:573
↓ 14 callers
Function
reportHealthValue
reportHealthValue is a shortcut we can use throughout the app to push a health check value
gateway/api_healthcheck.go:57
↓ 14 callers
Function
runInOp
(cm,f)
templates/playground/playground.js:149
↓ 14 callers
Function
testRunner
(t *testing.T, proxy *Proxy, hostname string, useSSL bool, testCases ...test.TCPTestCase)
tcp/tcp_test.go:200
↓ 13 callers
Method
Add
Add adds a certificate to the batch.
internal/certcheck/batcher.go:129
↓ 13 callers
Method
ExtractTo
(meta *apidef.MockResponseMeta)
apidef/oas/operation.go:847
↓ 13 callers
Method
ExtractTo
(jwt *apidef.JWTValidation)
apidef/oas/security.go:721
↓ 13 callers
Method
FindAllString
FindAllString is the same as regexp.Regexp.FindAllString but returns cached result instead.
regexp/regexp.go:364
↓ 13 callers
Method
Get
Get retrieves the value of a specific version parameter. Returns the string value of the parameter.
lib/apidef/version.go:100
↓ 13 callers
Method
GetAndDeleteSet
(string)
storage/storage.go:43
↓ 13 callers
Function
GetDefinition
GetDefinition will return a deep copy of the API definition valid for the request.
ctx/ctx.go:128
↓ 13 callers
Method
HandleReverseProxy
(params ReverseProxyParams)
internal/graphengine/engine.go:35
↓ 13 callers
Method
HasCheckCooldown
(certID string)
internal/certcheck/cache.go:39
↓ 13 callers
Method
Init
Init enables the init of event handler instances when they are created on ApiSpec creation
gateway/event_handler_webhooks.go:57
↓ 13 callers
Function
IsDNSMonitorRunning
IsDNSMonitorRunning returns whether the DNS monitor is currently running
rpc/dns_monitor.go:253
↓ 13 callers
Function
IsEmergencyMode
()
rpc/rpc_client.go:177
↓ 13 callers
Method
LoadPoliciesFromDashboard
LoadPoliciesFromDashboard will connect and download Policies from a Tyk Dashboard instance.
gateway/policy.go:119
↓ 13 callers
Method
Name
Name returns the name of the validation rule.
apidef/streams/bento/schema/generate_bento_config_schema.go:26
↓ 13 callers
Function
New
New creates a new cache instance.
internal/cache/repository.go:19
↓ 13 callers
Method
Serve
(l net.Listener)
tcp/tcp.go:154
↓ 13 callers
Method
Validate
(apiDef *APIDefinition, validationResult *ValidationResult)
apidef/validator.go:78
↓ 13 callers
Method
Write
(_ context.Context, msg *service.Message)
internal/portal/portal_output.go:44
↓ 13 callers
Function
__awaiter
(thisArg,_arguments,P,generator)
templates/playground/playground.js:233
↓ 13 callers
Function
createBatcherMocks
(t *testing.T)
internal/certcheck/batcher_test.go:1348
↓ 13 callers
Method
getHMACAuthChain
(spec *APISpec)
gateway/mw_http_signature_validation_test.go:83
↓ 13 callers
Method
internalGetAccessRights
()
coprocess/bindings/java/CoprocessSessionState.java:4258
↓ 13 callers
Method
internalGetAddParams
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:801
↓ 13 callers
Method
internalGetExtendedParams
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:877
↓ 13 callers
Method
internalGetHeaders
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:476
↓ 13 callers
Method
internalGetMetadata
()
coprocess/bindings/java/CoprocessObject.java:382
↓ 13 callers
Method
internalGetOauthKeys
()
coprocess/bindings/java/CoprocessSessionState.java:4402
↓ 13 callers
Method
internalGetParams
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:725
↓ 13 callers
Method
internalGetSetHeaders
()
coprocess/bindings/java/CoprocessMiniRequestObject.java:552
↓ 13 callers
Method
internalGetSpec
()
coprocess/bindings/java/CoprocessObject.java:458
↓ 13 callers
Function
removeChildrenAndAdd
(parent,e)
templates/playground/playground.js:149
↓ 13 callers
Function
runValidationTest
(apiDef *APIDefinition, ruleSet ValidationRuleSet, expectedValidationResult ValidationResult)
apidef/validator_test.go:44
↓ 13 callers
Method
setTestMode
(v bool)
gateway/server.go:368
↓ 13 callers
Function
toObjMap
(obj)
templates/playground/playground.js:549
↓ 13 callers
Function
toStructIfMap
(input interface{}, val interface{})
apidef/oas/oasutil.go:10
↓ 13 callers
Function
zg
(a,b)
templates/playground/playground.js:1290
↓ 12 callers
Function
AuthFailed
TODO: move this method to base middleware?
gateway/mw_auth_key.go:267
↓ 12 callers
Function
DummyAPI
()
apidef/api_definitions.go:1454
↓ 12 callers
Function
He
(a)
templates/playground/playground.js:1311
↓ 12 callers
Function
Mj
(a,b)
templates/playground/playground.js:1290
↓ 12 callers
Function
NewSessionState
()
user/session.go:301
← previous
next →
301–400 of 9,242, ranked by callers