models

package
v1.0.0-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EventProcessorDefaultBatchSize = 1

EventProcessorDefaultBatchSize - The default value for event processor batch size

View Source
const EventProcessorDefaultFlushInterval = 250 * time.Millisecond

EventProcessorDefaultFlushInterval - The default value for event processor flush interval

View Source
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

type APIOptions struct {
	APIName   string
	Arguments string
	Listeners map[string]int
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL