Documentation
¶
Index ¶
Constants ¶
const EventProcessorDefaultBatchSize = 1
EventProcessorDefaultBatchSize - The default value for event processor batch size
const EventProcessorDefaultFlushInterval = 250 * time.Millisecond
EventProcessorDefaultFlushInterval - The default value for event processor flush interval
const EventProcessorDefaultQueueSize = 1
EventProcessorDefaultQueueSize - The default value for event processor queue size
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIOptions ¶
APIOptions represents parameters for a scenario
type APIResponse ¶
type APIResponse struct { Result interface{} Type entities.VariableType ListenerCalled []DecisionListener }
APIResponse represents result for a scenario
type DecisionListener ¶
type DecisionListener struct { Type notification.DecisionNotificationType `yaml:"type"` UserID string `yaml:"user_id"` Attributes map[string]interface{} `yaml:"attributes"` DecisionInfo map[string]interface{} `yaml:"decision_info"` }
DecisionListener represents a decision notification
type DispatcherType ¶
type DispatcherType string
DispatcherType - represents event-dispatcher type
const ( // ProxyEventDispatcher - the event-dispatcher type is proxy ProxyEventDispatcher DispatcherType = "ProxyEventDispatcher" // NoOpEventDispatcher - the event-dispatcher type is no-op NoOpEventDispatcher DispatcherType = "NoopEventDispatcher" )
type GetEnabledFeaturesParams ¶
type GetEnabledFeaturesParams struct { UserID string `yaml:"user_id"` Attributes map[string]interface{} `yaml:"attributes"` }
GetEnabledFeaturesParams represents params required for GetEnabledFeatures API
type GetFeatureVariableParams ¶
type GetFeatureVariableParams struct { FeatureKey string `yaml:"feature_flag_key"` VariableKey string `yaml:"variable_key"` UserID string `yaml:"user_id"` Attributes map[string]interface{} `yaml:"attributes"` }
GetFeatureVariableParams represents params required for GetFeatureVariable API's
type IsFeatureEnabledRequestParams ¶
type IsFeatureEnabledRequestParams struct { FeatureKey string `yaml:"feature_flag_key"` UserID string `yaml:"user_id"` Attributes map[string]interface{} `yaml:"attributes"` }
IsFeatureEnabledRequestParams represents params required for isFeatureEnabled API