MCPcopy Create free account

hub / github.com/TykTechnologies/tyk / functions

Functions9,242 in github.com/TykTechnologies/tyk

↓ 2 callersFunctionNewCache
NewCache is a helper to create instance of the Cache struct. The ctx is used to cancel the TTL map cleanup goroutine.
internal/memorycache/cache.go:18
↓ 2 callersFunctionNewCertificateManager
(storage storage.Handler, secret string, logger *logrus.Logger, migrateCertList bool)
certs/manager.go:62
↓ 2 callersFunctionNewCipher
NewCipher translates tls.CipherSuite to our local type.
internal/crypto/ciphers.go:19
↓ 2 callersFunctionNewClient
NewClient creates a new Client for interacting with the portal API
internal/portal/portal_client.go:51
↓ 2 callersFunctionNewConsul
NewConsul returns a configured consul KV store adapter
storage/kv/consul.go:15
↓ 2 callersFunctionNewDefaultConfigValidator
()
apidef/streams/bento/validator.go:81
↓ 2 callersFunctionNewDefaultWithEnv
NewDefaultWithEnv gives a deep clone of the Default configuration and fills it from environment provided.
config/util.go:39
↓ 2 callersFunctionNewDnsCacheManager
NewDnsCacheManager returns new empty/non-initialized DnsCacheManager
dnscache/manager.go:52
↓ 2 callersFunctionNewEnableAllExperimentalConfigValidator
NewEnableAllExperimentalConfigValidator creates a new validator that skips all validations
apidef/streams/bento/validator.go:116
↓ 2 callersFunctionNewEngineV2
(options EngineV2Options)
internal/graphengine/engine_v2.go:77
↓ 2 callersFunctionNewEventMetaDefault
NewEventMetaDefault creates an instance of model.EventMetaDefault.
internal/model/events.go:17
↓ 2 callersFunctionNewLimiter
NewLimiter creates a new limiter object. It holds the redis client and the default non-distributed locks, logger, and a clock for supporting tests.
internal/rate/limiter/limiter.go:25
↓ 2 callersFunctionNewMockComplexityChecker
NewMockComplexityChecker creates a new mock instance.
internal/graphengine/engine_mock_test.go:158
↓ 2 callersFunctionNewMockCooldownCache
NewMockCooldownCache creates a new mock instance.
internal/certcheck/cache_mock.go:31
↓ 2 callersFunctionNewMockGranularAccessChecker
NewMockGranularAccessChecker creates a new mock instance.
internal/graphengine/engine_mock_test.go:235
↓ 2 callersFunctionNewMockGraphQLRequestProcessor
NewMockGraphQLRequestProcessor creates a new mock instance.
internal/graphengine/engine_mock_test.go:196
↓ 2 callersFunctionNewMockHandler
NewMockHandler creates a new mock instance.
storage/mock/storage.go:31
↓ 2 callersFunctionNewMockReverseProxyPreHandler
NewMockReverseProxyPreHandler creates a new mock instance.
internal/graphengine/engine_mock_test.go:273
↓ 2 callersFunctionNewOASFromClassicAPIDefinition
(api *apidef.APIDefinition)
apidef/oas/oas.go:744
↓ 2 callersFunctionNewOAuthHeaderProvider
(oauthConfig apidef.UpstreamOAuth)
ee/middleware/upstreamoauth/provider.go:49
↓ 2 callersFunctionNewRecord
NewRecord returns a Record object.
internal/httputil/accesslog/record.go:22
↓ 2 callersFunctionNewRequest
(tc *TestCase)
test/http.go:131
↓ 2 callersFunctionNewRoutingTriggerOptions
NewRoutingTriggerOptions allocates the maps inside RoutingTriggerOptions.
apidef/api_definitions.go:312
↓ 2 callersFunctionNewSmoothing
NewSmoothing will return a new instance of *Smoothing.
internal/rate/smoothing.go:18
↓ 2 callersFunctionNewVault
NewVault returns a configured vault KV store adapter
storage/kv/vault.go:23
↓ 2 callersFunctionNh
(a,b,c,d)
templates/playground/playground.js:1290
↓ 2 callersMethodObtainToken
(ctx context.Context)
ee/middleware/upstreamoauth/provider_password_authentication.go:10
↓ 2 callersFunctionOi
(a)
templates/playground/playground.js:1311
↓ 2 callersMethodPolicyByID
(string)
internal/model/interfaces.go:49
↓ 2 callersMethodPolicyCount
()
internal/model/interfaces.go:47
↓ 2 callersMethodPrepareTrackingHost
(checkObject apidef.HostCheckObject, apiID string)
gateway/host_checker_manager.go:340
↓ 2 callersMethodProcessRequest
ProcessRequest will run any checks on the request on the way through the system, return an error to have the chain fail
gateway/mw_context_vars.go:49
↓ 2 callersMethodProcessRequest
ProcessRequest will run any checks on the request on the way through the system, return an error to have the chain fail
gateway/mw_ip_blacklist.go:27
↓ 2 callersMethodProcessRequest
ProcessRequest will run any checks on the request on the way through the system, return an error to have the chain fail
gateway/mw_ip_whitelist.go:27
↓ 2 callersFunctionProtoSessionState
ProtoSessionState takes a standard SessionState and outputs a SessionState object compatible with Protocol Buffers.
gateway/coprocess_helpers.go:100
↓ 2 callersFunctionPyImport_Import
(name *C.PyObject)
dlpython/binding.go:182
↓ 2 callersFunctionPyTuple_SetItem
(arg0 *C.PyObject, arg1 C.long, arg2 *C.PyObject)
dlpython/binding.go:138
↓ 2 callersMethodRateLimitInfo
(r *http.Request, api *APISpec, endpoints user.Endpoints)
gateway/session_manager.go:231
↓ 2 callersMethodRecordAccessLog
RecordAccessLog is used for Success/Error handler logging. It emits a log entry with populated access log fields.
gateway/middleware.go:444
↓ 2 callersMethodRemoveTykExtension
RemoveTykExtension clears the Tyk extensions from *OAS.
apidef/oas/oas.go:202
↓ 2 callersFunctionReqBodyReader
(body interface{})
test/http.go:112
↓ 2 callersFunctionReset
()
rpc/rpc_client.go:185
↓ 2 callersMethodReset
Reset will clear the allowance.
internal/rate/model/allowance.go:66
↓ 2 callersMethodResetList
(hostList map[string]HostData)
gateway/host_checker.go:445
↓ 2 callersMethodResolve
Resolve mocks base method.
internal/graphql/execution_engine_mock.go:106
↓ 2 callersMethodResolve
(resolveContext *resolve.Context, planResult plan.Plan, writer resolve.FlushWriter)
internal/graphql/otel_graphql_engine_detailed.go:124
↓ 2 callersFunctionResolveCipher
ResolveCipher translates a string representation of a cipher to its uint16 ID. It's case-insensitive when matching the cipher by name.
internal/crypto/ciphers.go:68
↓ 2 callersFunctionRj
()
templates/playground/playground.js:1290
↓ 2 callersFunctionRun
Run will lint the configuration file. It will return the path to the config file that was checked, a list of warnings and an error, if any happened.
cli/linter/linter.go:17
↓ 2 callersMethodRun
(t testing.TB, testCases ...TestCase)
test/http.go:264
↓ 2 callersFunctionRunNewConnectionHandlerTest
(t *testing.T, handler *ConnectionHandler)
storage/connection_handler_test.go:48
↓ 2 callersFunctionS
(a)
templates/playground/playground.js:1319
↓ 2 callersMethodSayHello
SayHello implements helloworld.GreeterServer
gateway/grpc_test.go:490
↓ 2 callersMethodScan
Scan populates the JSVMEventHandlerConf struct by casting and copying data from the provided input.
apidef/api_definitions.go:1748
↓ 2 callersMethodScan
Scan extracts data from the input into the LogEventHandlerConf struct by performing type conversion.
apidef/api_definitions.go:1767
↓ 2 callersFunctionSd
(a,b)
templates/playground/playground.js:1311
↓ 2 callersMethodServeHTTPForCache
(http.ResponseWriter, *http.Request)
gateway/handler_success.go:43
↓ 2 callersMethodSet
(key string, addrs []string)
dnscache/storage.go:84
↓ 2 callersMethodSetCacheStorage
(cache IDnsCacheStorage)
dnscache/manager.go:57
↓ 2 callersMethodSetCheckCooldown
SetCheckCooldown sets a check cooldown for the specified identifier.
internal/certcheck/cache.go:191
↓ 2 callersMethodSetFireEventCooldown
SetFireEventCooldown sets a fire event cooldown for the specified identifier.
internal/certcheck/cache.go:212
↓ 2 callersMethodSetFirstConnection
(isFirstConnection bool)
rpc/synchronization_forcer.go:41
↓ 2 callersMethodSetFlushInterval
(time.Duration)
internal/certcheck/batcher.go:85
↓ 2 callersFunctionSetLoadCounts
(t *testing.T, value int)
rpc/rpc_client.go:632
↓ 2 callersMethodSetName
(name string)
gateway/middleware.go:296
↓ 2 callersMethodSetOrgExpiry
(orgid string, expiry int64)
gateway/middleware.go:367
↓ 2 callersMethodSetPolicies
(ids ...string)
user/session.go:476
↓ 2 callersFunctionSetServiceID
SetServiceID returns context with service assigned to it.
trace/manager.go:37
↓ 2 callersMethodSetServicePortMapping
(input map[string]string)
apidef/importer/wsdl.go:20
↓ 2 callersMethodSetup
Setup starts the gateway according to test case settings.
tests/accesslog/access_log_test.go:31
↓ 2 callersFunctionSetupTracing
(name string, opts map[string]interface{})
trace/manager.go:147
↓ 2 callersFunctionShouldUpdateChildAPIs
ShouldUpdateChildAPIs checks if child APIs need server updates after a base API change. Configuration changes that trigger child API updates: - Versi
apidef/oas/servers_regeneration.go:434
↓ 2 callersMethodSignatureVerifier
SignatureVerifier returns a verifier to use for validating signatures. It is configured with the PublicKeyPath value in gateway config.
gateway/server.go:1515
↓ 2 callersFunctionSj
(a,b)
templates/playground/playground.js:1290
↓ 2 callersFunctionSortByPathLength
SortByPathLength decomposes an openapi3.Paths to a sorted []PathItem. The sorting takes the length of the paths into account, as well as path paramete
internal/oasutil/paths.go:44
↓ 2 callersMethodStart
(ctx context.Context)
gateway/host_checker_manager.go:84
↓ 2 callersMethodStart
Start initialize the records channel and spawn the record workers
gateway/analytics.go:87
↓ 2 callersMethodStartBeating
(ctx context.Context)
gateway/dashboard_register.go:29
↓ 2 callersMethodStartPoller
(ctx context.Context)
gateway/host_checker_manager.go:184
↓ 2 callersMethodStartRPCKeepaliveWatcher
()
gateway/rpc_storage_handler.go:853
↓ 2 callersMethodStartRPCLoopCheck
(orgId string)
gateway/rpc_storage_handler.go:839
↓ 2 callersMethodStartTicker
()
gateway/testutil.go:93
↓ 2 callersMethodStopPoller
()
gateway/host_checker_manager.go:221
↓ 2 callersMethodStoreAnalytics
(ip string)
config/config.go:1536
↓ 2 callersFunctionTLSVersions
TLSVersions will return a list of TLS versions as a string.
internal/crypto/ciphers.go:34
↓ 2 callersFunctionTa
(a)
templates/playground/playground.js:1290
↓ 2 callersMethodTagsFromMetadata
TagsFromMetadata updates the session state with the tags from the metadata.
user/session_tags.go:4
↓ 2 callersMethodTarget
(serviceURL string)
gateway/service_discovery.go:300
↓ 2 callersFunctionTd
(a,b,c)
templates/playground/playground.js:1311
↓ 2 callersMethodTest
(t *testing.T)
gateway/host_checker_manager_test.go:314
↓ 2 callersFunctionTestHelperSSEServer
(tb testing.TB)
gateway/testutil.go:2089
↓ 2 callersMethodTestNewWrappedServeHTTP
()
gateway/reverse_proxy_test.go:342
↓ 2 callersMethodTracer
()
trace/openzipkin/zipkin.go:87
↓ 2 callersMethodTransformResponseBodyJson
TransformResponseBodyJson defines json template
internal/oasbuilder/builder.go:258
↓ 2 callersMethodTransformResponseHeaders
(factory func(*oas.TransformHeaders))
internal/oasbuilder/builder.go:218
↓ 2 callersMethodURLAllowedAndIgnored
URLAllowedAndIgnored checks if a url is allowed and ignored.
gateway/api_definition.go:1426
↓ 2 callersFunctionUe
(a,b,c)
templates/playground/playground.js:1290
↓ 2 callersFunctionUi
(a)
templates/playground/playground.js:1311
↓ 2 callersMethodUnload
()
gateway/middleware.go:60
↓ 2 callersMethodUnmarshalJSON
UnmarshalJSON unmarshal EventHandler as per Tyk OAS API definition contract.
apidef/oas/event.go:93
← previousnext →2,301–2,400 of 9,242, ranked by callers