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
Function
NewCache
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 callers
Function
NewCertificateManager
(storage storage.Handler, secret string, logger *logrus.Logger, migrateCertList bool)
certs/manager.go:62
↓ 2 callers
Function
NewCipher
NewCipher translates tls.CipherSuite to our local type.
internal/crypto/ciphers.go:19
↓ 2 callers
Function
NewClient
NewClient creates a new Client for interacting with the portal API
internal/portal/portal_client.go:51
↓ 2 callers
Function
NewConsul
NewConsul returns a configured consul KV store adapter
storage/kv/consul.go:15
↓ 2 callers
Function
NewDefaultConfigValidator
()
apidef/streams/bento/validator.go:81
↓ 2 callers
Function
NewDefaultWithEnv
NewDefaultWithEnv gives a deep clone of the Default configuration and fills it from environment provided.
config/util.go:39
↓ 2 callers
Function
NewDnsCacheManager
NewDnsCacheManager returns new empty/non-initialized DnsCacheManager
dnscache/manager.go:52
↓ 2 callers
Function
NewEnableAllExperimentalConfigValidator
NewEnableAllExperimentalConfigValidator creates a new validator that skips all validations
apidef/streams/bento/validator.go:116
↓ 2 callers
Function
NewEngineV2
(options EngineV2Options)
internal/graphengine/engine_v2.go:77
↓ 2 callers
Function
NewEventMetaDefault
NewEventMetaDefault creates an instance of model.EventMetaDefault.
internal/model/events.go:17
↓ 2 callers
Function
NewLimiter
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 callers
Function
NewMockComplexityChecker
NewMockComplexityChecker creates a new mock instance.
internal/graphengine/engine_mock_test.go:158
↓ 2 callers
Function
NewMockCooldownCache
NewMockCooldownCache creates a new mock instance.
internal/certcheck/cache_mock.go:31
↓ 2 callers
Function
NewMockGranularAccessChecker
NewMockGranularAccessChecker creates a new mock instance.
internal/graphengine/engine_mock_test.go:235
↓ 2 callers
Function
NewMockGraphQLRequestProcessor
NewMockGraphQLRequestProcessor creates a new mock instance.
internal/graphengine/engine_mock_test.go:196
↓ 2 callers
Function
NewMockHandler
NewMockHandler creates a new mock instance.
storage/mock/storage.go:31
↓ 2 callers
Function
NewMockReverseProxyPreHandler
NewMockReverseProxyPreHandler creates a new mock instance.
internal/graphengine/engine_mock_test.go:273
↓ 2 callers
Function
NewOASFromClassicAPIDefinition
(api *apidef.APIDefinition)
apidef/oas/oas.go:744
↓ 2 callers
Function
NewOAuthHeaderProvider
(oauthConfig apidef.UpstreamOAuth)
ee/middleware/upstreamoauth/provider.go:49
↓ 2 callers
Function
NewRecord
NewRecord returns a Record object.
internal/httputil/accesslog/record.go:22
↓ 2 callers
Function
NewRequest
(tc *TestCase)
test/http.go:131
↓ 2 callers
Function
NewRoutingTriggerOptions
NewRoutingTriggerOptions allocates the maps inside RoutingTriggerOptions.
apidef/api_definitions.go:312
↓ 2 callers
Function
NewSmoothing
NewSmoothing will return a new instance of *Smoothing.
internal/rate/smoothing.go:18
↓ 2 callers
Function
NewVault
NewVault returns a configured vault KV store adapter
storage/kv/vault.go:23
↓ 2 callers
Function
Nh
(a,b,c,d)
templates/playground/playground.js:1290
↓ 2 callers
Method
ObtainToken
(ctx context.Context)
ee/middleware/upstreamoauth/provider_password_authentication.go:10
↓ 2 callers
Function
Oi
(a)
templates/playground/playground.js:1311
↓ 2 callers
Method
PolicyByID
(string)
internal/model/interfaces.go:49
↓ 2 callers
Method
PolicyCount
()
internal/model/interfaces.go:47
↓ 2 callers
Method
PrepareTrackingHost
(checkObject apidef.HostCheckObject, apiID string)
gateway/host_checker_manager.go:340
↓ 2 callers
Method
ProcessRequest
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 callers
Method
ProcessRequest
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 callers
Method
ProcessRequest
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 callers
Function
ProtoSessionState
ProtoSessionState takes a standard SessionState and outputs a SessionState object compatible with Protocol Buffers.
gateway/coprocess_helpers.go:100
↓ 2 callers
Function
PyImport_Import
(name *C.PyObject)
dlpython/binding.go:182
↓ 2 callers
Function
PyTuple_SetItem
(arg0 *C.PyObject, arg1 C.long, arg2 *C.PyObject)
dlpython/binding.go:138
↓ 2 callers
Method
RateLimitInfo
(r *http.Request, api *APISpec, endpoints user.Endpoints)
gateway/session_manager.go:231
↓ 2 callers
Method
RecordAccessLog
RecordAccessLog is used for Success/Error handler logging. It emits a log entry with populated access log fields.
gateway/middleware.go:444
↓ 2 callers
Method
RemoveTykExtension
RemoveTykExtension clears the Tyk extensions from *OAS.
apidef/oas/oas.go:202
↓ 2 callers
Function
ReqBodyReader
(body interface{})
test/http.go:112
↓ 2 callers
Function
Reset
()
rpc/rpc_client.go:185
↓ 2 callers
Method
Reset
Reset will clear the allowance.
internal/rate/model/allowance.go:66
↓ 2 callers
Method
ResetList
(hostList map[string]HostData)
gateway/host_checker.go:445
↓ 2 callers
Method
Resolve
Resolve mocks base method.
internal/graphql/execution_engine_mock.go:106
↓ 2 callers
Method
Resolve
(resolveContext *resolve.Context, planResult plan.Plan, writer resolve.FlushWriter)
internal/graphql/otel_graphql_engine_detailed.go:124
↓ 2 callers
Function
ResolveCipher
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 callers
Function
Rj
()
templates/playground/playground.js:1290
↓ 2 callers
Function
Run
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 callers
Method
Run
(t testing.TB, testCases ...TestCase)
test/http.go:264
↓ 2 callers
Function
RunNewConnectionHandlerTest
(t *testing.T, handler *ConnectionHandler)
storage/connection_handler_test.go:48
↓ 2 callers
Function
S
(a)
templates/playground/playground.js:1319
↓ 2 callers
Method
SayHello
SayHello implements helloworld.GreeterServer
gateway/grpc_test.go:490
↓ 2 callers
Method
Scan
Scan populates the JSVMEventHandlerConf struct by casting and copying data from the provided input.
apidef/api_definitions.go:1748
↓ 2 callers
Method
Scan
Scan extracts data from the input into the LogEventHandlerConf struct by performing type conversion.
apidef/api_definitions.go:1767
↓ 2 callers
Function
Sd
(a,b)
templates/playground/playground.js:1311
↓ 2 callers
Method
ServeHTTPForCache
(http.ResponseWriter, *http.Request)
gateway/handler_success.go:43
↓ 2 callers
Method
Set
(key string, addrs []string)
dnscache/storage.go:84
↓ 2 callers
Method
SetCacheStorage
(cache IDnsCacheStorage)
dnscache/manager.go:57
↓ 2 callers
Method
SetCheckCooldown
SetCheckCooldown sets a check cooldown for the specified identifier.
internal/certcheck/cache.go:191
↓ 2 callers
Method
SetFireEventCooldown
SetFireEventCooldown sets a fire event cooldown for the specified identifier.
internal/certcheck/cache.go:212
↓ 2 callers
Method
SetFirstConnection
(isFirstConnection bool)
rpc/synchronization_forcer.go:41
↓ 2 callers
Method
SetFlushInterval
(time.Duration)
internal/certcheck/batcher.go:85
↓ 2 callers
Function
SetLoadCounts
(t *testing.T, value int)
rpc/rpc_client.go:632
↓ 2 callers
Method
SetName
(name string)
gateway/middleware.go:296
↓ 2 callers
Method
SetOrgExpiry
(orgid string, expiry int64)
gateway/middleware.go:367
↓ 2 callers
Method
SetPolicies
(ids ...string)
user/session.go:476
↓ 2 callers
Function
SetServiceID
SetServiceID returns context with service assigned to it.
trace/manager.go:37
↓ 2 callers
Method
SetServicePortMapping
(input map[string]string)
apidef/importer/wsdl.go:20
↓ 2 callers
Method
Setup
Setup starts the gateway according to test case settings.
tests/accesslog/access_log_test.go:31
↓ 2 callers
Function
SetupTracing
(name string, opts map[string]interface{})
trace/manager.go:147
↓ 2 callers
Function
ShouldUpdateChildAPIs
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 callers
Method
SignatureVerifier
SignatureVerifier returns a verifier to use for validating signatures. It is configured with the PublicKeyPath value in gateway config.
gateway/server.go:1515
↓ 2 callers
Function
Sj
(a,b)
templates/playground/playground.js:1290
↓ 2 callers
Function
SortByPathLength
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 callers
Method
Start
(ctx context.Context)
gateway/host_checker_manager.go:84
↓ 2 callers
Method
Start
Start initialize the records channel and spawn the record workers
gateway/analytics.go:87
↓ 2 callers
Method
StartBeating
(ctx context.Context)
gateway/dashboard_register.go:29
↓ 2 callers
Method
StartPoller
(ctx context.Context)
gateway/host_checker_manager.go:184
↓ 2 callers
Method
StartRPCKeepaliveWatcher
()
gateway/rpc_storage_handler.go:853
↓ 2 callers
Method
StartRPCLoopCheck
(orgId string)
gateway/rpc_storage_handler.go:839
↓ 2 callers
Method
StartTicker
()
gateway/testutil.go:93
↓ 2 callers
Method
StopPoller
()
gateway/host_checker_manager.go:221
↓ 2 callers
Method
StoreAnalytics
(ip string)
config/config.go:1536
↓ 2 callers
Function
TLSVersions
TLSVersions will return a list of TLS versions as a string.
internal/crypto/ciphers.go:34
↓ 2 callers
Function
Ta
(a)
templates/playground/playground.js:1290
↓ 2 callers
Method
TagsFromMetadata
TagsFromMetadata updates the session state with the tags from the metadata.
user/session_tags.go:4
↓ 2 callers
Method
Target
(serviceURL string)
gateway/service_discovery.go:300
↓ 2 callers
Function
Td
(a,b,c)
templates/playground/playground.js:1311
↓ 2 callers
Method
Test
(t *testing.T)
gateway/host_checker_manager_test.go:314
↓ 2 callers
Function
TestHelperSSEServer
(tb testing.TB)
gateway/testutil.go:2089
↓ 2 callers
Method
TestNewWrappedServeHTTP
()
gateway/reverse_proxy_test.go:342
↓ 2 callers
Method
Tracer
()
trace/openzipkin/zipkin.go:87
↓ 2 callers
Method
TransformResponseBodyJson
TransformResponseBodyJson defines json template
internal/oasbuilder/builder.go:258
↓ 2 callers
Method
TransformResponseHeaders
(factory func(*oas.TransformHeaders))
internal/oasbuilder/builder.go:218
↓ 2 callers
Method
URLAllowedAndIgnored
URLAllowedAndIgnored checks if a url is allowed and ignored.
gateway/api_definition.go:1426
↓ 2 callers
Function
Ue
(a,b,c)
templates/playground/playground.js:1290
↓ 2 callers
Function
Ui
(a)
templates/playground/playground.js:1311
↓ 2 callers
Method
Unload
()
gateway/middleware.go:60
↓ 2 callers
Method
UnmarshalJSON
UnmarshalJSON unmarshal EventHandler as per Tyk OAS API definition contract.
apidef/oas/event.go:93
← previous
next →
2,301–2,400 of 9,242, ranked by callers