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
↓ 2 callers
Method
FindAllSubmatch
FindAllSubmatch is the same as regexp.Regexp.FindAllSubmatch but returns cached result instead.
regexp/regexp.go:381
↓ 2 callers
Method
Fire
(sessionData *user.SessionState, key string, triggerLimit, usagePercentage float64)
gateway/monitor.go:18
↓ 2 callers
Method
FireEvent
FireEvent is added to the BaseMiddleware object so it is available across the entire stack
gateway/middleware.go:588
↓ 2 callers
Method
FirstError
()
apidef/validator.go:24
↓ 2 callers
Function
Fj
()
templates/playground/playground.js:1311
↓ 2 callers
Method
Flush
()
tcp/tcp.go:48
↓ 2 callers
Function
GatewayResourceAttributes
(gwID string, isDataplane bool, groupID string, isSegmented bool, segmentTags []string)
internal/otel/otel.go:106
↓ 2 callers
Function
Ge
()
templates/playground/playground.js:1311
↓ 2 callers
Method
GenerateAPIID
()
apidef/api_definitions.go:1422
↓ 2 callers
Method
GenerateCheckerId
()
gateway/host_checker_manager.go:91
↓ 2 callers
Function
GenerateRSAPublicKey
GenerateRSAPublicKey generates an RSA public key.
internal/crypto/helpers.go:232
↓ 2 callers
Function
GenerateTestBinaryData
()
gateway/testutil.go:2001
↓ 2 callers
Method
Get
(key string)
storage/kv/consul.go:23
↓ 2 callers
Method
GetApiDefinitions
GetAPIDefinitions will pull API definitions from the RPC server
gateway/rpc_storage_handler.go:739
↓ 2 callers
Method
GetCoProcessGrpcServerTargetURL
()
gateway/coprocess_grpc.go:27
↓ 2 callers
Method
GetCustomPolicies
GetCustomPolicies is like CustomPolicies but returns the list, preserving order.
user/custom_policies.go:26
↓ 2 callers
Function
GetHTTPPaths
GetHTTPPaths is the main function to get HTTP paths from the stream configuration.
ee/middleware/streams/util.go:81
↓ 2 callers
Method
GetKeyPrefix
GetPrefix returns storage key prefix
storage/redis_cluster.go:988
↓ 2 callers
Method
GetLoadCounts
()
rpc/rpc_client.go:127
↓ 2 callers
Method
GetLogs
GetLogs returns the logs that are stored in the buffer.
test/buffered_logger.go:48
↓ 2 callers
Method
GetMultiKey
Returned string is expected to be a JSON object (user.SessionState)
storage/storage.go:22
↓ 2 callers
Method
GetPolicies
GetPolicies will pull Policies from the RPC server
gateway/rpc_storage_handler.go:773
↓ 2 callers
Method
GetSingleOrDefaultVersion
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 callers
Function
GetSymbol
(modulePath string, symbol string)
goplugin/goplugin.go:12
↓ 2 callers
Method
GetTykStreamingExtension
()
apidef/oas/oas.go:125
↓ 2 callers
Function
Gi
(a,b,c)
templates/playground/playground.js:1290
↓ 2 callers
Method
GraphErrors
(response []byte)
internal/graphql/graphql_request.go:32
↓ 2 callers
Method
GroupLoginCallback
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 callers
Function
Ha
()
templates/playground/playground.js:1311
↓ 2 callers
Method
HandleAuthorisation
HandleAuthorisation creates the authorisation data for the request
gateway/oauth_manager.go:350
↓ 2 callers
Method
HandleDashboardResponseReadError
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 callers
Method
HasSchema
()
internal/graphengine/engine_v2.go:198
↓ 2 callers
Method
HasSchema
()
internal/graphengine/engine_v1.go:124
↓ 2 callers
Method
Hash
(token string, sharedSecret string, timeStamp int64)
signature_validator/hash.go:20
↓ 2 callers
Function
HashStr
(in string, withAlg ...string)
internal/crypto/hash.go:36
↓ 2 callers
Function
Hi
(a,b)
templates/playground/playground.js:1311
↓ 2 callers
Function
Hj
(a,b)
templates/playground/playground.js:1311
↓ 2 callers
Function
HttpServerRunner
()
test/http.go:358
↓ 2 callers
Method
Import
()
apidef/adapter/import_adapter.go:6
↓ 2 callers
Method
Import
Import populates *JWT based on arguments.
apidef/oas/security.go:279
↓ 2 callers
Method
Import
Import populates *Basic from it's arguments.
apidef/oas/security.go:453
↓ 2 callers
Method
Import
Import populates *OAuth from it's arguments.
apidef/oas/security.go:587
↓ 2 callers
Method
ImportMiddlewares
(overRideValues TykExtensionConfigParams)
apidef/oas/default.go:230
↓ 2 callers
Method
IncrLoadCounts
(n int)
rpc/rpc_client.go:119
↓ 2 callers
Function
Init
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 callers
Method
Init
()
gateway/mw_http_signature_validation.go:46
↓ 2 callers
Method
Init
(spec *apidef.ServiceDiscoveryConfiguration, gw *Gateway)
gateway/service_discovery.go:30
↓ 2 callers
Method
Init
()
gateway/mw_openid.go:41
↓ 2 callers
Method
InitDNSCaching
(ttl, checkInterval time.Duration)
dnscache/manager.go:25
↓ 2 callers
Method
InitTriggerRx
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 callers
Function
Inject
(service string, span opentracing.Span, h http.Header)
trace/manager.go:205
↓ 2 callers
Method
InputValidation
(operation *graphql.Request)
internal/graphql/otel_graphql_engine_detailed.go:139
↓ 2 callers
Method
IsBaseAPI
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 callers
Method
IsBaseAPIWithVersioning
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 callers
Method
IsCacheEnabled
()
dnscache/manager.go:65
↓ 2 callers
Method
IsChildAPI
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 callers
Function
IsMuxTemplate
IsMuxTemplate determines if a pattern is a mux template by counting the number of opening and closing braces.
internal/httputil/mux.go:73
↓ 2 callers
Function
IsPublicKey
IsPublicKey verifies if given certificate is a public key only.
internal/crypto/helpers.go:152
↓ 2 callers
Function
IsRaceEnabled
()
test/race_on.go:6
↓ 2 callers
Function
IsSocketClosed
IsSocketClosed returns true if err is a result of reading from closed network connection
tcp/tcp.go:376
↓ 2 callers
Method
IsUpgrade
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 callers
Function
Kb
(a,b)
templates/playground/playground.js:1311
↓ 2 callers
Function
Kd
(a)
templates/playground/playground.js:1311
↓ 2 callers
Function
Ke
(a)
templates/playground/playground.js:1290
↓ 2 callers
Method
KeyHashEmpty
()
user/session.go:419
↓ 2 callers
Function
Kg
(a,b,c,d,e,f,g)
templates/playground/playground.js:1311
↓ 2 callers
Function
Lb
(a)
templates/playground/playground.js:1311
↓ 2 callers
Function
Lc
(a,b)
templates/playground/playground.js:1311
↓ 2 callers
Function
Le
(a,b)
templates/playground/playground.js:1290
↓ 2 callers
Method
Less
Less is used to implement sort interface.
user/session.go:195
↓ 2 callers
Function
Li
(a)
templates/playground/playground.js:1290
↓ 2 callers
Method
ListFromService
(apiID string)
gateway/host_checker_manager.go:435
↓ 2 callers
Method
ListWebhookCredentials
ListWebhookCredentials retrieves a list of apps and filters out their webhook credentials
internal/portal/portal_client.go:64
↓ 2 callers
Function
Load
Load retusn a zipkin configuration from the opts.
trace/openzipkin/config.go:8
↓ 2 callers
Function
Load
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 callers
Method
LoadAccess
LoadAccess will load access data from redis
gateway/oauth_manager.go:1041
↓ 2 callers
Method
LoadConfFromMeta
(meta map[string]interface{})
gateway/ldap_auth_handler.go:21
↓ 2 callers
Method
LoadDefinitionsFromRPCBackup
()
gateway/rpc_backup_handlers.go:29
↓ 2 callers
Method
LoadJSPaths
LoadJSPaths will load JS classes and functionality in to the VM by file
gateway/mw_js_plugin.go:391
↓ 2 callers
Method
LoadPoliciesFromRPCBackup
()
gateway/rpc_backup_handlers.go:83
↓ 2 callers
Method
Locker
Locker implements a distributed lock.
internal/rate/model/interfaces.go:17
↓ 2 callers
Method
Locker
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 callers
Method
Logger
Logger implements a typical logger signature with service context.
internal/policy/apply.go:255
↓ 2 callers
Method
Logger
Logger returns a logger with middleware filled out.
ee/middleware/upstreambasicauth/middleware.go:39
↓ 2 callers
Method
Logger
Logger returns a logger with middleware filled out.
ee/middleware/upstreamoauth/middleware.go:45
↓ 2 callers
Method
LookupIP
(ctx context.Context, host string)
rpc/dns_resolver.go:28
↓ 2 callers
Function
LoopingUrl
(host string)
gateway/mw_url_rewrite.go:501
↓ 2 callers
Function
Ma
(a,b,c)
templates/playground/playground.js:1311
↓ 2 callers
Method
MakeRequests
(batchRequest BatchRequestStructure, requestSet []*http.Request)
gateway/batch_requests.go:123
↓ 2 callers
Function
MatchPaths
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 callers
Function
MergeAllowedURLs
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 callers
Function
Mh
(a,b,c)
templates/playground/playground.js:1290
↓ 2 callers
Method
Milliseconds
Millisecond returns ReadableDuration in milliseconds.
internal/time/duration.go:82
↓ 2 callers
Method
Name
()
internal/model/interfaces.go:26
↓ 2 callers
Method
Name
Name returns the name for the middleware.
ee/middleware/upstreamoauth/middleware.go:50
↓ 2 callers
Function
Nb
(a)
templates/playground/playground.js:1311
↓ 2 callers
Function
Ne
()
templates/playground/playground.js:1290
↓ 2 callers
Function
New
(orgID *string, storage model.PolicyProvider, logger *logrus.Logger)
internal/policy/apply.go:27
↓ 2 callers
Function
NewBaseMiddleware
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 callers
Function
NewBatch
NewBatch creates a new Batch.
internal/certcheck/batcher.go:33
← previous
next →
2,201–2,300 of 9,242, ranked by callers