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
↓ 3,802 callers
Method
Run
()
tests/streams/scripts/load_gen.go:12
↓ 1,670 callers
Method
Error
(args ...interface{})
trace/log.go:15
↓ 1,047 callers
Method
Close
()
internal/cache/repository.go:15
↓ 714 callers
Function
StartTest
(genConf func(globalConf *config.Config), testConfig ...TestConfig)
gateway/testutil.go:1055
↓ 646 callers
Method
Errorf
(msg string, args ...interface{})
trace/jaeger/jaeger.go:23
↓ 620 callers
Method
BuildAndLoadAPI
(apiGens ...func(spec *APISpec))
gateway/testutil.go:1895
↓ 595 callers
Method
GetConfig
()
internal/model/interfaces.go:42
↓ 532 callers
Method
Set
(key string, addrs []string)
dnscache/manager.go:38
↓ 490 callers
Method
Debug
(args ...interface{})
trace/log.go:14
↓ 449 callers
Method
SetConfig
(conf config.Config, skipReload ...bool)
gateway/server.go:2148
↓ 355 callers
Method
Add
Add to the bucket. Returns bucket state after adding.
internal/model/bucket.go:25
↓ 338 callers
Method
Contains
Contains is used to assert if a method exists in EndpointMethods.
user/session.go:229
↓ 286 callers
Method
Return
Return rewrite *gomock.Call.Return
internal/policy/store_mock.gen.go:63
↓ 230 callers
Method
Info
(args ...interface{})
trace/log.go:17
↓ 228 callers
Method
GetConfig
()
gateway/server.go:2140
↓ 225 callers
Method
ResetTestConfig
TestSkipTargetPassEscapingOffWithSkipURLCleaningTrue TestBrokenClients TestGRPC_TokenBasedAuthentication Deprecated: ResetTestConfig resets the config
gateway/testutil.go:271
↓ 203 callers
Method
Cleanup
Cleanup will delete all expired items from the cache map.
internal/cache/cache.go:115
↓ 200 callers
Method
Unlock
(ctx context.Context)
internal/rate/mock/locker.go:15
↓ 198 callers
Method
LoadAPI
(specs ...*APISpec)
gateway/testutil.go:1843
↓ 197 callers
Method
Write
(p []byte)
gateway/reverse_proxy.go:1614
↓ 193 callers
Method
Lock
(key string, timeout time.Duration)
ee/middleware/upstreamoauth/model.go:36
↓ 192 callers
Function
Error
(ctx context.Context, logrus Logrus, args ...interface{})
trace/log.go:26
↓ 192 callers
Method
Store
()
gateway/auth_manager.go:20
↓ 187 callers
Function
Pos
(line,ch,sticky)
templates/playground/playground.js:149
↓ 184 callers
Method
WriteHeader
(statusCode int)
gateway/mw_go_plugin.go:56
↓ 180 callers
Method
Get
()
gateway/coprocess_bundle.go:129
↓ 170 callers
Method
SetTykExtension
SetTykExtension populates our OAS schema extension inside *OAS.
apidef/oas/oas.go:163
↓ 167 callers
Function
cont
()
templates/playground/playground.js:153
↓ 166 callers
Method
Logger
()
gateway/middleware.go:54
↓ 160 callers
Function
apiError
(msg string)
gateway/api.go:108
↓ 157 callers
Method
GetTykExtension
GetTykExtension returns our OAS schema extension from inside *OAS.
apidef/oas/oas.go:172
↓ 151 callers
Method
Fill
(r *http.Request)
internal/model/upstream_auth.go:7
↓ 146 callers
Method
Header
()
gateway/analytics_streams.go:140
↓ 145 callers
Method
String
()
gateway/proxy_muxer.go:115
↓ 139 callers
Method
Warning
(args ...interface{})
trace/log.go:16
↓ 139 callers
Method
get
(key string)
internal/rate/allowance_store.go:54
↓ 128 callers
Function
BuildAPI
(apiGens ...func(spec *APISpec))
gateway/testutil.go:1823
↓ 128 callers
Function
join
(maybeArray)
templates/playground/playground.js:593
↓ 126 callers
Function
doJSONWrite
(w http.ResponseWriter, code int, obj interface{})
gateway/api.go:138
↓ 123 callers
Method
Duration
Duration returns the time between two allowed requests at the defined rate. It's used to decide which rate limit has a bigger allowance.
user/session.go:91
↓ 98 callers
Method
TypeOf
(typ Type)
pkg/errpack/errpack.go:53
↓ 96 callers
Method
Delete
(certID string, orgID string)
certs/manager.go:49
↓ 92 callers
Method
ExtractTo
ExtractTo extracts *OAS into *apidef.APIDefinition.
apidef/oas/oas.go:99
↓ 90 callers
Method
CreatePolicy
(pGen ...func(p *user.Policy))
gateway/testutil.go:899
↓ 89 callers
Method
Decode
(value string)
config/config.go:445
↓ 89 callers
Function
y
(a)
templates/playground/playground.js:1290
↓ 86 callers
Method
Get
(key string)
storage/kv/store.go:13
↓ 86 callers
Function
u
@license React v16.14.0 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under
templates/playground/playground.js:1311
↓ 85 callers
Method
Copy
Copy provides a new BaseMiddleware with it's own logger scope (copy). The Spec, Proxy and Gw values are not copied.
gateway/middleware.go:281
↓ 82 callers
Method
ServeHTTP
(http.ResponseWriter, *http.Request)
gateway/handler_success.go:42
↓ 81 callers
Function
CreateJWKToken
(jGen ...func(*jwt.Token))
gateway/testutil.go:922
↓ 81 callers
Function
New
New returns a V4 UUID.
internal/uuid/uuid.go:10
↓ 81 callers
Method
set
()
storage/redis_cluster.go:196
↓ 80 callers
Method
HandleFunc
(path string, f func(http.ResponseWriter, *http.Request))
ee/middleware/streams/util.go:18
↓ 80 callers
Method
Len
Len is used to implement sort interface.
user/session.go:190
↓ 79 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/certcheck/batcher_mock.go:40
↓ 79 callers
Method
Empty
Empty is a utility function that returns true if the value is empty.
apidef/api_definitions.go:298
↓ 78 callers
Method
Len
()
apidef/host_list.go:50
↓ 72 callers
Method
Split
Split is the same as regexp.Regexp.Split but returns cached result instead.
regexp/regexp.go:416
↓ 72 callers
Function
UpdateAPIVersion
(spec *APISpec, name string, verGen func(version *apidef.VersionInfo))
gateway/testutil.go:1763
↓ 68 callers
Method
Name
()
gateway/middleware.go:58
↓ 68 callers
Function
TestReq
(t testing.TB, method, urlStr string, body interface{})
gateway/testutil.go:999
↓ 65 callers
Method
CreateSession
(sGen ...func(s *user.SessionState))
gateway/testutil.go:1448
↓ 64 callers
Function
getLine
(doc,n)
templates/playground/playground.js:149
↓ 63 callers
Method
Load
Load tries to load a plugin
cli/plugin/plugin.go:25
↓ 62 callers
Method
String
String returns the source text used to compile the wrapped regular expression.
regexp/regexp.go:110
↓ 61 callers
Function
option
(name,deflt,handle,notOnInit)
templates/playground/playground.js:149
↓ 60 callers
Function
CreateSession
Deprecated: Use Test.CreateSession instead.
gateway/testutil.go:849
↓ 60 callers
Method
Finish
()
trace/openzipkin/zipkin.go:35
↓ 60 callers
Method
fixKey
(keyName string)
storage/redis_cluster.go:252
↓ 59 callers
Method
Context
()
gateway/session_manager.go:90
↓ 59 callers
Method
UpdateSession
(keyName string, session *user.SessionState, resetTTLTo int64, hashed bool)
gateway/auth_manager.go:21
↓ 59 callers
Method
add
(key string, value interface{})
regexp/cache.go:37
↓ 58 callers
Function
_objectSpread
(target)
templates/playground/playground.js:705
↓ 56 callers
Method
mwAppendEnabled
(chain *[]alice.Constructor, mw TykMiddleware)
gateway/middleware.go:216
↓ 54 callers
Method
Init
()
apidef/api_definitions.go:1411
↓ 54 callers
Function
String
String will return the description for the event if any. If no description exists, it will return the event value.
internal/event/event.go:74
↓ 54 callers
Function
elt
(tag,content,className,style)
templates/playground/playground.js:149
↓ 53 callers
Method
Do
(tc test.TestCase)
gateway/testutil.go:1307
↓ 52 callers
Method
SetDisabledFlags
SetDisabledFlags set disabled flags to true, since by default they are not enabled in OAS API definition.
apidef/migration.go:455
↓ 51 callers
Method
GetJWTConfiguration
()
apidef/oas/security.go:1330
↓ 50 callers
Function
H
(a)
templates/playground/playground.js:1290
↓ 50 callers
Method
Stop
()
gateway/auth_manager.go:27
↓ 50 callers
Function
on
(emitter,type,f)
templates/playground/playground.js:149
↓ 48 callers
Method
Count
()
internal/cache/repository.go:12
↓ 48 callers
Function
CreateStandardSession
()
gateway/testutil.go:869
↓ 48 callers
Function
GetTLSClient
(cert *tls.Certificate, caCert []byte)
gateway/testutil.go:1439
↓ 48 callers
Method
Init
()
gateway/middleware.go:53
↓ 47 callers
Method
Connect
Connect will establish a connection this is always true because we are dynamically using redis
storage/redis_cluster.go:69
↓ 47 callers
Function
I
(a,b)
templates/playground/playground.js:1290
↓ 47 callers
Method
Log
(data opentracing.LogData)
trace/openzipkin/zipkin.go:90
↓ 47 callers
Function
clipPos
(doc,pos)
templates/playground/playground.js:149
↓ 47 callers
Function
cmp
(a,b)
templates/playground/playground.js:149
↓ 47 callers
Function
wrap
(innerFn,outerFn,self,tryLocsList)
templates/playground/playground.js:1
↓ 46 callers
Method
BuildDefaultTykExtension
BuildDefaultTykExtension builds a default tyk extension in *OAS based on function arguments.
apidef/oas/default.go:70
↓ 46 callers
Function
inspect_inspect
(value)
templates/playground/playground.js:1327
↓ 45 callers
Method
Flush
()
internal/cache/repository.go:13
↓ 45 callers
Method
Set
(string, interface{}, int64)
internal/cache/repository.go:10
↓ 45 callers
Method
Since
Since compares the current Record with another Record and returns a new Record containing only the goroutines found in the current Record but not in t
internal/debug2/goroutine.go:86
↓ 43 callers
Method
Format
Format returns the entry.Message as a []byte.
log/log.go:21
next →
1–100 of 9,242, ranked by callers