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 callers
Method
GetClientTokens
(id string)
gateway/oauth_manager.go:547
↓ 3 callers
Function
GetCoProcessGrpcServerTargetUrlAsString
(targetUrl *url.URL)
gateway/coprocess_grpc.go:46
↓ 3 callers
Method
GetCount
GetCount returns the number of items in the current sliding log window. The sliding log is trimmed removing older items.
internal/rate/sliding_log.go:104
↓ 3 callers
Method
GetDelay
GetDelay returns the delay for rate limit smoothing as a time.Duration.
internal/rate/model/allowance.go:75
↓ 3 callers
Method
GetDescription
()
gateway/oauth_manager.go:82
↓ 3 callers
Method
GetDescription
()
gateway/oauth_manager.go:535
↓ 3 callers
Method
GetEventTriggers
GetEventTriggers returns event triggers. There was a typo in the json tag. To maintain backward compatibility, this solution is chosen.
config/config.go:1395
↓ 3 callers
Method
GetExtendedClientNoPrefix
Custom getter to handle prefixing issues in Redis
gateway/oauth_manager.go:553
↓ 3 callers
Function
GetJWKWithClient
GetJWKWithClient fetches JWK using the provided HTTP client for proxy and mTLS support
internal/httpclient/factory.go:120
↓ 3 callers
Method
GetKeyPrefix
()
storage/storage.go:46
↓ 3 callers
Method
GetKeysAndValues
GetKeysAndValues will return all keys and their values - not to be used lightly
storage/redis_cluster.go:491
↓ 3 callers
Method
GetKeysAndValuesWithFilter
(string)
storage/storage.go:35
↓ 3 callers
Method
GetOAuthTokensPurgeInterval
GetOAuthTokensPurgeInterval returns purge interval for lapsed OAuth tokens.
config/private.go:21
↓ 3 callers
Function
GetPluginFileNameToLoad
GetPluginFileNameToLoad check which file to load based on name, tyk version, os and architecture but it also takes care of returning the name of the f
goplugin/plugin_name_builder.go:14
↓ 3 callers
Function
GetProxyOnlyContextValue
(ctx context.Context)
internal/graphengine/context.go:40
↓ 3 callers
Method
GetRawKey
(keyName string)
storage/redis_cluster.go:333
↓ 3 callers
Method
GetScopeClaimName
()
apidef/api_definitions.go:1617
↓ 3 callers
Function
GetServiceID
GetServiceID returns service name attched to context returns an empty string if the service name key is not found.
trace/manager.go:43
↓ 3 callers
Method
HasCheckCooldown
HasCheckCooldown checks if a check cooldown exists for the specified identifier.
internal/certcheck/cache.go:175
↓ 3 callers
Method
HasFireEventCooldown
HasFireEventCooldown checks if a fire event cooldown exists for the specified identifier.
internal/certcheck/cache.go:196
↓ 3 callers
Method
HostDown
(urlStr string)
gateway/host_checker_manager.go:316
↓ 3 callers
Function
If
(a,b,c)
templates/playground/playground.js:1290
↓ 3 callers
Function
Ij
(a)
templates/playground/playground.js:1311
↓ 3 callers
Method
Import
Import populates *AuthSources based on arguments.
apidef/oas/default.go:217
↓ 3 callers
Method
Init
(hasherName string)
signature_validator/validate.go:20
↓ 3 callers
Method
Init
()
gateway/mw_jwt.go:71
↓ 3 callers
Method
Init
(interface{}, *APISpec)
gateway/middleware.go:711
↓ 3 callers
Function
InitDNSMock
InitDNSMock initializes dns server on udp:0 address and replaces net.DefaultResolver in order to route all dns queries within tests to this server. In
test/dns.go:162
↓ 3 callers
Method
InputValidation
InputValidation mocks base method.
internal/graphql/execution_engine_mock.go:63
↓ 3 callers
Method
InsertIntoAPIDefinitionAsVersion
(apidef.VersionInfo, *apidef.APIDefinition, string)
apidef/importer/importer.go:16
↓ 3 callers
Function
InternalServerError
InternalServerError responds with HTTP 503 Internal Server Error.
internal/httputil/response.go:22
↓ 3 callers
Method
IsCheckCooldownActive
IsCheckCooldownActive checks if a check cooldown is active for the specified identifier.
internal/certcheck/cache.go:81
↓ 3 callers
Method
IsCheckCooldownActive
IsCheckCooldownActive checks if a check cooldown is active for the specified identifier.
internal/certcheck/cache.go:180
↓ 3 callers
Method
IsFireEventCooldownActive
IsFireEventCooldownActive checks if a fire event cooldown is active for the specified identifier.
internal/certcheck/cache.go:129
↓ 3 callers
Method
IsFireEventCooldownActive
IsFireEventCooldownActive checks if a fire event cooldown is active for the specified identifier.
internal/certcheck/cache.go:201
↓ 3 callers
Function
IsSseStreamingResponse
IsSseStreamingResponse returns true if the response designates SSE streaming.
internal/httputil/streaming.go:20
↓ 3 callers
Function
IsStreamingResponse
IsStreamingResponse returns true if the response designates streaming (SSE).
internal/httputil/streaming.go:46
↓ 3 callers
Function
JSONToFormValues
JSONToFormValues if r has header Content-Type set to application/json this will decode request body as json to map[string]string and adds the key/valu
gateway/oauth_manager.go:372
↓ 3 callers
Function
Jb
(a,b)
templates/playground/playground.js:1311
↓ 3 callers
Function
Kc
(a,b,c,d,e)
templates/playground/playground.js:1311
↓ 3 callers
Method
ListAllIds
(prefix string)
certs/manager.go:46
↓ 3 callers
Function
Mb
()
templates/playground/playground.js:1290
↓ 3 callers
Method
MigrateEndpointMeta
()
apidef/migration.go:159
↓ 3 callers
Method
Name
()
apidef/streams/bento/schema/generate_bento_config_schema.go:348
↓ 3 callers
Method
Name
()
trace/trace.go:16
↓ 3 callers
Function
Nc
(a)
templates/playground/playground.js:1311
↓ 3 callers
Function
NewAPISpec
NewAPISpec creates a new APISpec object based on the required inputs. The resulting object is a subset of `*gateway.APISpec`.
ee/middleware/streams/model.go:40
↓ 3 callers
Function
NewCache
NewCache creates a new *Cache for storing items with a TTL.
internal/cache/cache.go:22
↓ 3 callers
Function
NewConnectionWatcher
NewConnectionWatcher returns a new *ConnectionWatcher.
internal/httputil/connection_watcher.go:15
↓ 3 callers
Function
NewDefaultStreamAnalyticsRecorder
(gw *Gateway, spec *APISpec)
gateway/analytics_streams.go:59
↓ 3 callers
Function
NewDnsCacheStorage
(expiration, checkInterval time.Duration)
dnscache/storage.go:24
↓ 3 callers
Function
NewGraphStatsExtractor
()
internal/graphql/graphql_request.go:25
↓ 3 callers
Function
NewHeaders
NewHeaders creates Headers from in map.
apidef/oas/header.go:36
↓ 3 callers
Function
NewHostList
()
apidef/host_list.go:13
↓ 3 callers
Function
NewHostListFromList
(newList []string)
apidef/host_list.go:19
↓ 3 callers
Function
NewMiddleware
NewMiddleware returns a new instance of Middleware.
ee/middleware/streams/middleware.go:43
↓ 3 callers
Function
NewOtelGraphqlEngineV2Basic
(tracerProvider otel.TracerProvider, engine ExecutionEngineI)
internal/graphql/otel_graphql_engine_basic.go:92
↓ 3 callers
Function
NewRedisController
NewRedisController initializes a new RedisController. This method ensures Go plugins can connect to Redis leveraging Tyk's internal storage mechanisms
storage/redis_shim.go:18
↓ 3 callers
Function
NewSlidingLog
NewSlidingLog creates a new SlidingLog instance with a storage.Handler. In case the storage is offline, it's expected to return nil and an error to ha
internal/rate/sliding_log.go:31
↓ 3 callers
Function
NewStreamAnalyticsFactory
(logger *logrus.Entry, gw *Gateway, spec *APISpec)
gateway/analytics_streams.go:27
↓ 3 callers
Method
Normalize
(operation *graphql.Request)
internal/graphql/otel_graphql_engine_detailed.go:56
↓ 3 callers
Method
Object
(item *gabs.Container)
gateway/service_discovery.go:146
↓ 3 callers
Method
ObtainToken
(ctx context.Context)
ee/middleware/upstreamoauth/provider_client_credentials.go:10
↓ 3 callers
Function
Oe
(a)
templates/playground/playground.js:1290
↓ 3 callers
Method
OnStateChange
OnStateChange records open connections in response to connection state changes. Set net/http Server.ConnState to this method as value.
internal/httputil/connection_watcher.go:22
↓ 3 callers
Method
Plan
Plan mocks base method.
internal/graphql/execution_engine_mock.go:91
↓ 3 callers
Method
Plan
(postProcessor *postprocess.Processor, operation *graphql.Request, report *operationreport.Report)
internal/graphql/otel_graphql_engine_detailed.go:112
↓ 3 callers
Function
PosWithInfo
(line,ch,sticky,outside,xRel)
templates/playground/playground.js:149
↓ 3 callers
Method
PrepareRecord
(r *http.Request)
ee/middleware/streams/analytics.go:30
↓ 3 callers
Method
ProcessRequest
ProcessRequest will handle upstream OAuth.
ee/middleware/upstreamoauth/middleware.go:73
↓ 3 callers
Function
ProtoMap
ProtoMap is a helper function for maps with string slice values.
gateway/coprocess_helpers.go:187
↓ 3 callers
Function
Ra
(a)
templates/playground/playground.js:1290
↓ 3 callers
Method
ReconstructParams
(r *http.Request)
gateway/mw_js_plugin.go:55
↓ 3 callers
Method
RecordHit
(r *http.Request, timing analytics.Latency, code int, responseCopy *http.Response, cached bool)
gateway/handler_success.go:184
↓ 3 callers
Method
RecordUptimeAnalytics
RecordHit will store an AnalyticsRecord in Redis
gateway/host_checker_manager.go:494
↓ 3 callers
Function
RemoveDuplicateApiDefinitionHeaders
(headers ...map[string]string)
apidef/adapter/gqlengineadapter/utils.go:71
↓ 3 callers
Method
RemoveFromSet
(keyName, value string)
storage/redis_cluster.go:838
↓ 3 callers
Function
RemoveResponseTransferEncoding
RemoveResponseTransferEncoding will remove a transfer encoding hint from the response.
internal/httputil/response.go:28
↓ 3 callers
Method
ResetQuotaObfuscateKey
(keyName string)
gateway/auth_manager.go:36
↓ 3 callers
Method
ResolvedDefault
()
apidef/api_definitions.go:467
↓ 3 callers
Function
RevokeAllTokens
(storage ExtendedOsinStorageInterface, clientId, clientSecret string)
gateway/oauth_manager.go:306
↓ 3 callers
Function
RevokeToken
(storage ExtendedOsinStorageInterface, token, tokenTypeHint string)
gateway/oauth_manager.go:258
↓ 3 callers
Method
RoundTrip
(request *http.Request)
internal/graphengine/transport.go:34
↓ 3 callers
Method
RoundTrip
(r *http.Request)
gateway/reverse_proxy.go:819
↓ 3 callers
Method
Set
Set updates the current allowance to the specified value and sets the next update time based on the configured delay.
internal/rate/model/allowance.go:86
↓ 3 callers
Method
SetCacheStorage
(cache IDnsCacheStorage)
dnscache/manager.go:27
↓ 3 callers
Method
SetCheckerHostList
()
gateway/host_checker_manager.go:562
↓ 3 callers
Function
SetDefinition
SetDefinition sets an API definition object to the request context.
ctx/ctx.go:121
↓ 3 callers
Method
SetEmergencyModeLoaded
(n bool)
rpc/rpc_client.go:145
↓ 3 callers
Method
SetFireEventCooldown
SetFireEventCooldown sets a fire event cooldown for the specified identifier.
internal/certcheck/cache.go:147
↓ 3 callers
Method
SetIgnores
(ignores []string)
internal/debug2/goroutine.go:31
↓ 3 callers
Function
SetOASDefinition
SetOASDefinition sets an OAS API definition object to the request context.
ctx/ctx.go:139
↓ 3 callers
Function
SetProxyOnlyContextValue
(ctx context.Context, req *http.Request)
internal/graphengine/context.go:27
↓ 3 callers
Method
SetRawKey
Second input string is expected to be a JSON object (user.SessionState)
storage/storage.go:25
↓ 3 callers
Method
SetRollingWindow
(key string, per int64, val string, pipeline bool)
storage/storage.go:39
↓ 3 callers
Function
SetSelfLooping
SetSelfLooping updates the request context with a boolean value indicating whether the request is in a self-looping state.
internal/httpctx/looping.go:12
↓ 3 callers
Function
SetUpstreamAuth
SetUpstreamAuth sets the header name to be used for upstream authentication.
internal/service/core/context.go:24
↓ 3 callers
Method
Sign
()
gateway/redis_signals.go:58
↓ 3 callers
Function
Span
Span creates a new span for the given ops. If tracing is disabled in this ctx then a noop span is created and the same ctx is returned. Note that the
trace/manager.go:188
↓ 3 callers
Method
Stop
Stop cleans up the stream
ee/middleware/streams/stream.go:98
← previous
next →
1,601–1,700 of 9,242, ranked by callers