Documentation
¶
Overview ¶
Package proxy implements proxy service and controllers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API bundles all components required to answer API calls from split sdks
type Options ¶
type Options struct {
// Logger to propagate everywhere
Logger logging.LoggerInterface
// Host to where incoming http connections will be listened
Host string
// HTTP port to use for the server
Port int
// APIKeys used for authenticating proxy requests
APIKeys []string
// ImpressionListener to forward incoming impression bulks to
ImpressionListener impressionlistener.ImpressionBulkListener
// Whether to do verbose logging in the gin framework
DebugOn bool
// used for on-demand splitchanges fetching when a requested summary is not cached
SplitFetcher service.SplitFetcher
// used to resolve splitChanges requests
ProxySplitStorage storage.ProxySplitStorage
// used to resolve segmentChanges & mySegments requests
ProxySegmentStorage storage.ProxySegmentStorage
// what to do with received impression bulk payloads
ImpressionsSink tasks.DeferredRecordingTask
// what to do with received impression count payloads
ImpressionCountSink tasks.DeferredRecordingTask
// what to do with received event bulk payloads
EventsSink tasks.DeferredRecordingTask
// what to do with incoming telemetry.config payloads
TelemetryConfigSink tasks.DeferredRecordingTask
// what to do with incoming telemetry.runtime payloads
TelemetryUsageSink tasks.DeferredRecordingTask
// used to record local metrics
Telemetry proxyStorage.ProxyEndpointTelemetry
Cache *gincache.Middleware
}
Options struct to set options for Proxy mode.
Click to show internal directories.
Click to hide internal directories.