MCPcopy Create free account

hub / github.com/TykTechnologies/tyk / functions

Functions9,242 in github.com/TykTechnologies/tyk

↓ 1 callersMethodReplaceServers
ReplaceServers replaces OAS servers entry having oldAPIURLs with new apiURLs .
apidef/oas/oas.go:508
↓ 1 callersMethodReplaceTykVariables
ReplaceTykVariables implements a variable replacement hook. It will replace the template `in`. If `escape` is true, the values get escaped as a query
gateway/mw_url_rewrite.go:218
↓ 1 callersFunctionReplaceWildCards
(endpoint string)
apidef/importer/wsdl.go:427
↓ 1 callersMethodRequestValid
RequestValid will check if an incoming request has valid version data and return a RequestStatus that describes the status of the request
gateway/api_definition.go:1606
↓ 1 callersMethodReset
Reset resets the keyBuilder to be empty.
regexp/keybuilder.go:23
↓ 1 callersFunctionRi
(a,b,c)
templates/playground/playground.js:1311
↓ 1 callersFunctionRightPad2Len
(s, padStr string, overallLen int)
internal/crypto/helpers.go:315
↓ 1 callersFunctionRoot
(service string, r *http.Request)
trace/manager.go:157
↓ 1 callersMethodRouteChat
RouteChat receives a stream of message/location pairs, and responds with a stream of all previous messages at each of those locations.
gateway/grpc_streaming_server_test.go:111
↓ 1 callersFunctionRun
(c *config.Config)
checkup/checkup.go:28
↓ 1 callersMethodRun
(t testing.TB, testCases ...TCPTestCase)
test/tcp.go:32
↓ 1 callersMethodRun
Run starts the janitor which calls the provided cleanup function at every interval.
internal/cache/janitor.go:28
↓ 1 callersMethodSave
(*Bundle, string, *APISpec)
gateway/coprocess_bundle.go:177
↓ 1 callersMethodSaveAccess
SaveAccess will save a token and it's access data to redis
gateway/oauth_manager.go:940
↓ 1 callersMethodSecondsUntilExpiry
SecondsUntilExpiry returns the number of seconds until the certificate expires. This is calculated from the UntilExpiry field for convenience.
internal/certcheck/model.go:41
↓ 1 callersMethodSendRequest
SendRequest sends the requested package (as a POST) to the defined
apidef/notifications.go:39
↓ 1 callersMethodServeHTTP
ServeHTTP will store the request details in the analytics store if necessary and proxy the request to it's final destination, this is invoked by the P
gateway/handler_success.go:386
↓ 1 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
gateway/proxy_muxer.go:65
↓ 1 callersMethodServeHTTPForCache
(w http.ResponseWriter, r *http.Request, vmeta *apidef.VirtualMeta)
gateway/mw_virtual_endpoint.go:122
↓ 1 callersFunctionSet
Set updates the context with the provided events and returns the new context. Set will update the context with a new value and return the new context.
internal/event/event.go:125
↓ 1 callersMethodSet
Add an item to the cache, replacing any existing item. If the duration is 0, the cache's expiration time is used. If it is -1, the item never expires.
internal/cache/cache.go:51
↓ 1 callersMethodSet
Set is a thread-safe way to add new items to the map
internal/memorycache/cache.go:28
↓ 1 callersMethodSet
Set will write the passed Allowance value to storage.
internal/rate/allowance_store.go:108
↓ 1 callersMethodSet
Set returns the items in the current sliding log window, before adding a new item. The sliding log is trimmed removing older items, and a `per` second
internal/rate/sliding_log.go:125
↓ 1 callersFunctionSetAsDefault
SetAsDefault creates an option that marks a specific version as the default. This sets the Default field in the VersionDefinition to the specified ver
lib/apidef/version.go:143
↓ 1 callersMethodSetClassic
Set sets the available classic API definitions to the MergedAPIList.
internal/model/merged_apis.go:39
↓ 1 callersMethodSetEventTriggers
SetEventTriggers sets events for backwards compatibility
config/config.go:1409
↓ 1 callersMethodSetExp
(string, int64)
storage/storage.go:26
↓ 1 callersMethodSetExp
SetExp updates the expiration time of a specific key in the DummyStorage. This method accepts two parameters: a string representing the key, and an in
storage/dummy.go:62
↓ 1 callersFunctionSetInit
(fn InitFunc)
trace/manager.go:143
↓ 1 callersMethodSetKey
SetKey will create (or update) a key value in the store
gateway/rpc_storage_handler.go:352
↓ 1 callersMethodSetKey
(string, string, int64)
ee/middleware/upstreamoauth/model.go:35
↓ 1 callersMethodSetLoadCounts
(n int)
rpc/rpc_client.go:115
↓ 1 callersFunctionSetLogger
(log Logger)
trace/manager.go:139
↓ 1 callersMethodSetOrgSentinel
(orgChan chan bool, orgId string)
gateway/mw_organisation_activity.go:207
↓ 1 callersMethodSetPoliciesByID
SetPoliciesByID will update the internal policiesByID map with new policies. The key used will be the policy ID.
gateway/gateway.go:50
↓ 1 callersMethodSetRawKey
SetRawKey stores a value with a specified key in the DummyStorage. It takes three parameters: the key and value as strings, and an expiry time as int6
storage/dummy.go:55
↓ 1 callersMethodSetRequestLogger
(r *http.Request)
gateway/middleware.go:317
↓ 1 callersMethodSetRes
(token string, res jwt.MapClaims, timeout int64)
gateway/mw_external_oauth.go:340
↓ 1 callersMethodSetRollingWindow
SetRollingWindow sets a rolling window for a key with specified parameters; implementation pending.
storage/dummy.go:119
↓ 1 callersMethodSetTykStreamingExtension
(xTykStreaming *XTykStreaming)
apidef/oas/oas.go:117
↓ 1 callersMethodSetup
Setup mocks base method.
internal/graphql/execution_engine_mock.go:120
↓ 1 callersMethodSetup
(ctx context.Context, postProcessor *postprocess.Processor, resolveContext *resolve.Context, operation *graphq
internal/graphql/otel_graphql_engine_detailed.go:105
↓ 1 callersMethodSetupNewRelic
SetupNewRelic creates new newrelic.Application instance.
gateway/server.go:314
↓ 1 callersFunctionShouldUpdateOldDefaultChild
ShouldUpdateOldDefaultChild determines if the old default child API needs server regeneration when creating a new child version with set_default=true.
apidef/oas/servers_regeneration.go:485
↓ 1 callersFunctionStart
()
gateway/server.go:1791
↓ 1 callersMethodStop
Stop stops the analytics processing
gateway/analytics.go:97
↓ 1 callersMethodStopBeating
()
gateway/dashboard_register.go:289
↓ 1 callersMethodStoreCounterVal
(HealthPrefix, string)
gateway/api_healthcheck.go:24
↓ 1 callersMethodString
()
gateway/session_manager.go:218
↓ 1 callersMethodStripVersionPath
StripVersionPath will strip the version from the URL. The input URL should already have listen path stripped.
gateway/api_definition.go:1774
↓ 1 callersMethodSubObject
(obj *gabs.Container)
gateway/service_discovery.go:224
↓ 1 callersMethodSwap
(new *Proxy)
tcp/tcp.go:98
↓ 1 callersFunctionTestReqBody
(t testing.TB, body interface{})
gateway/testutil.go:983
↓ 1 callersMethodToAPIDefinition
(orgId, upstreamURL string, as_mock bool)
apidef/importer/wsdl.go:276
↓ 1 callersMethodToRegularAD
()
gateway/policy.go:38
↓ 1 callersMethodToRegularPolicy
()
gateway/policy.go:62
↓ 1 callersFunctionTokenHashAlgo
(token string)
internal/crypto/token.go:44
↓ 1 callersFunctionTokenOrg
(token string)
internal/crypto/token.go:71
↓ 1 callersFunctionTransferEncoding
TransferEncoding gets the header value from the request.
internal/httputil/request.go:6
↓ 1 callersMethodTransformRequestBody
(factory func(*oas.TransformBody))
internal/oasbuilder/builder.go:262
↓ 1 callersMethodTransformRequestBodyJson
(tpl string)
internal/oasbuilder/builder.go:275
↓ 1 callersMethodTransformRequestHeaders
(factory func(*oas.TransformHeaders))
internal/oasbuilder/builder.go:231
↓ 1 callersMethodTransformResponseBody
(factory func(*oas.TransformBody))
internal/oasbuilder/builder.go:244
↓ 1 callersFunctionTykGetData
TykGetData is a CoProcess API function for fetching data. export TykGetData
gateway/coprocess_api.go:53
↓ 1 callersFunctionTykSessionState
TykSessionState takes a coprocess.SessionState (as returned by the Protocol Buffer binding), and outputs a standard Tyk SessionState.
gateway/coprocess_helpers.go:13
↓ 1 callersFunctionTykStoreData
TykStoreData is a CoProcess API function for storing data. export TykStoreData
gateway/coprocess_api.go:33
↓ 1 callersFunctionTykTriggerEvent
TykTriggerEvent is a CoProcess API function for triggering Tyk system events. export TykTriggerEvent
gateway/coprocess_api.go:76
↓ 1 callersMethodUnload
()
gateway/mw_jwt.go:111
↓ 1 callersMethodUnload
()
gateway/mw_certificate_check.go:85
↓ 1 callersMethodUpdateTrackingList
(hd []HostData)
gateway/host_checker_manager.go:383
↓ 1 callersMethodUpdateTrackingListByAPIID
(hd []HostData, apiId string)
gateway/host_checker_manager.go:403
↓ 1 callersMethodUsage
()
tests/streams/scripts/load_gen.go:10
↓ 1 callersFunctionValidate
(definition *APIDefinition, ruleSet ValidationRuleSet)
apidef/validator.go:64
↓ 1 callersMethodValidate
Validate always returns nil, effectively enabling all configurations
apidef/streams/bento/validator.go:121
↓ 1 callersFunctionValidateOASObjectWithConfig
ValidateOASObjectWithConfig validates a Tyk Streams document against a particular OAS version, using the provided configuration to determine if valida
apidef/streams/validator.go:210
↓ 1 callersFunctionValidateOASTemplateWithBentoValidator
(documentBody []byte, oasVersion string, bentoValidatorKind bento.ValidatorKind)
apidef/streams/validator.go:224
↓ 1 callersFunctionValidateSecurityProcessingMode
ValidateSecurityProcessingMode validates the security processing mode value.
apidef/oas/authentication.go:26
↓ 1 callersMethodVersion
Version attempts to extract the version data from a request, depending on where it is stored in the request (currently only "header" is supported)
gateway/api_definition.go:1665
↓ 1 callersMethodWithApiKey
WithApiKey sets the access token from the request under APIKey. The access token is obfuscated, or hashed depending on passed arguments.
internal/httputil/accesslog/record.go:33
↓ 1 callersFunctionWithBaseID
WithBaseID creates an option that sets the version baseID in a VersionDefinition.
lib/apidef/version.go:127
↓ 1 callersFunctionWithListenPath
(path string, strip bool)
internal/oasbuilder/builder.go:111
↓ 1 callersFunctionWithLocalDialer
WithLocalDialer sets a http.Transport DialContext, which only connects to 127.0.0.1.
test/http_client.go:70
↓ 1 callersFunctionWithQuotaKey
WithQuotaKey overrides quota key manually
gateway/api_loader.go:1218
↓ 1 callersFunctionWithSchema
(schema *graphql.Schema)
apidef/adapter/graphql_config_adapter.go:30
↓ 1 callersFunctionWithTransport
WithTransport sets a http.RoundTripper to a http.Client
test/http_client.go:46
↓ 1 callersFunctionWithUpstreamUrl
(upstreamUrl string)
internal/oasbuilder/builder.go:126
↓ 1 callersFunctionWithV2Schema
(schema *gqlv2.Schema)
apidef/adapter/graphql_config_adapter.go:36
↓ 1 callersFunctionWithVersionName
WithVersionName creates an option that sets the version name in a VersionDefinition.
lib/apidef/version.go:120
↓ 1 callersMethodWrapDialer
(dialer *net.Dialer)
dnscache/manager.go:26
↓ 1 callersMethodWrapDialer
WrapDialer returns wrapped version of net.Dialer#DialContext func with hooked up caching of dns queries. Actual dns server call occures in net.Resolv
dnscache/manager.go:73
↓ 1 callersMethodWrite
(bytes []byte)
gateway/analytics_streams.go:144
↓ 1 callersMethodWrite
(i []byte)
gateway/analytics_streams_test.go:311
↓ 1 callersMethodWriteHeader
(statusCode int)
gateway/analytics_streams.go:166
↓ 1 callersMethodWriteHeader
(statusCode int)
gateway/analytics_streams_test.go:315
↓ 1 callersFunctionYi
(a,b,c)
templates/playground/playground.js:1290
↓ 1 callersFunction__asyncValues
(o)
templates/playground/playground.js:233
↓ 1 callersFunction__rest
(s,e)
templates/playground/playground.js:233
↓ 1 callersFunction_collectFieldsAndFragmentNames
(context,parentType,selectionSet,nodeAndDefs,fragmentNames)
templates/playground/playground.js:833
↓ 1 callersMethod_getDefinitionForFragmentSpread
(query,ast,node,filePath,projectConfig)
templates/playground/playground.js:345
← previousnext →3,601–3,700 of 9,242, ranked by callers