Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedSync ¶
type AdvancedSync struct {
StreamingEnabled bool `json:"streamingEnabled" s-cli:"streaming-enabled" s-def:"true" s-desc:"Enable/disable streaming functionality"`
HTTPTimeoutMs int64 `json:"httpTimeoutMs" s-cli:"http-timeout-ms" s-def:"30000" s-desc:"Total http request timeout"`
ImpressionsBuffer int64 `json:"impressionsBufferSize" s-cli:"impressions-buffer-size" s-def:"500" s-dec:"How many impressions bulks to keep in memory"`
EventsBuffer int64 `json:"eventsBufferSize" s-cli:"events-buffer-size" s-def:"500" s-dec:"How many events bulks to keep in memory"`
TelemetryBuffer int64 `json:"telemetryBufferSize" s-cli:"telemetry-buffer-size" s-def:"500" s-dec:"How many telemetry bulks to keep in memory"`
ImpressionsWorkers int64 `json:"impressionsWorkers" s-cli:"impressions-workers" s-def:"10" s-desc:"#workers to forward impressions to Split servers"`
EventsWorkers int64 `json:"eventsWorkers" s-cli:"events-workers" s-def:"10" s-desc:"#workers to forward events to Split servers"`
TelemetryWorkers int64 `json:"telemetryWorkers" s-cli:"telemetry-workers" s-def:"10" s-desc:"#workers to forward telemetry to Split servers"`
InternalMetricsRateMs int64 `json:"internalTelemetryRateMs" s-cli:"internal-metrics-rate-ms" s-def:"3600000" s-desc:"How often to send internal metrics"`
LargeSegmentLazyLoad bool `json:"largeSegmentLazyLoad" s-cli:"largesegment-lazy-load" s-def:"false" s-desc:"On/Off Large Segment Lazy Load"`
}
AdvancedSync configuration options
type Healthcheck ¶
type Healthcheck struct {
Dependecies HealthcheckDependecines `json:"dependencies" s-nested:"true"`
}
Healthcheck configuration options
type HealthcheckDependecines ¶
type HealthcheckDependecines struct {
DependenciesCheckRateMs int64 `` /* 128-byte string literal not displayed */
}
HealthcheckDependecines configuration options
type Initialization ¶
type Initialization struct {
TimeoutMs int64 `json:"timeoutMS" s-cli:"timeout-ms" s-def:"10000" s-desc:"How long to wait until the synchronizer is ready"`
Snapshot string `json:"snapshot" s-cli:"snapshot" s-def:"" s-desc:"Snapshot file to use as a starting point"`
ForceFreshStartup bool `json:"forceFreshStartup" s-cli:"force-fresh-startup" s-def:"false" s-desc:"Wipe storage before starting the synchronizer"`
}
Initialization configuration options
type Main ¶
type Main struct {
Apikey string `json:"apikey" s-cli:"apikey" s-def:"" s-desc:"Split server side SDK key"`
IPAddressEnabled bool `json:"ipAddressEnabled" s-cli:"ip-address-enabled" s-def:"true" s-desc:"Bundle host's ip address when sending data to Split"`
FlagSetsFilter []string `json:"flagSetsFilter" s-cli:"flag-sets-filter" s-def:"" s-desc:"Flag Sets Filter provided"`
FlagSetStrictMatching bool `` /* 155-byte string literal not displayed */
Initialization Initialization `json:"initialization" s-nested:"true"`
Server Server `json:"server" s-nested:"true"`
Admin conf.Admin `json:"admin" s-nested:"true"`
Storage Storage `json:"storage" s-nested:"true"`
Sync Sync `json:"sync" s-nested:"true"`
Integrations conf.Integrations `json:"integrations" s-nested:"true"`
Logging conf.Logging `json:"logging" s-nested:"true"`
Healthcheck Healthcheck `json:"healthcheck" s-nested:"true"`
Observability Observability `json:"observability" s-nested:"true"`
FlagSpecVersion string `json:"flagSpecVersion" s-cli:"flag-spec-version" s-def:"1.3" s-desc:"Spec version for flags"`
}
Main configuration options
func (*Main) BuildAdvancedConfig ¶
func (m *Main) BuildAdvancedConfig() *cconf.AdvancedConfig
BuildAdvancedConfig generates a commons-compatible advancedconfig with default + overriden parameters
type Observability ¶ added in v5.0.4
type Observability struct {
TimeSliceWidthSecs int64 `json:"timeSliceWidthSecs" s-cli:"observability-time-slice-width-secs" s-def:"300" s-desc:"time slice size in seconds"`
MaxTimeSliceCount int64 `` /* 138-byte string literal not displayed */
}
Observability configuration options
type Persistent ¶
type Persistent struct {
Filename string `` /* 133-byte string literal not displayed */
}
Persistent storage configuration options
type Server ¶
type Server struct {
ClientApikeys []string `json:"apikeys" s-cli:"client-apikeys" s-def:"SDK_API_KEY" s-desc:"Apikeys that clients connecting to this proxy will use."`
Host string `json:"host" s-cli:"server-host" s-def:"0.0.0.0" s-desc:"Host/IP to start the proxy server on"`
Port int64 `json:"port" s-cli:"server-port" s-def:"3000" s-desc:"Port to listten for incoming requests from SDKs"`
CacheSize int64 `json:"httpCacheSize" s-cli:"http-cache-size" s-def:"1000000" s-desc:"How many responses to cache"`
TLS conf.TLS `json:"tls" s-nested:"true" s-cli-prefix:"server"`
}
Server configuration options
type Storage ¶
type Storage struct {
Volatile Volatile `json:"volatile" s-nested:"true"`
Persistent Persistent `json:"persistent" s-nested:"true"`
}
Storage configuration options
type Sync ¶
type Sync struct {
SplitRefreshRateMs int64 `json:"splitRefreshRateMs" s-cli:"split-refresh-rate-ms" s-def:"60000" s-desc:"How often to refresh feature flags"`
SegmentRefreshRateMs int64 `json:"segmentRefreshRateMs" s-cli:"segment-refresh-rate-ms" s-def:"60000" s-desc:"How often to refresh segments"`
LargeSegmentRefreshRateMs int64 `` /* 129-byte string literal not displayed */
Advanced AdvancedSync `json:"advanced" s-nested:"true"`
}
Sync configuration options
Click to show internal directories.
Click to hide internal directories.