Versions in this module Expand all Collapse all v1 v1.0.0 Jul 17, 2020 Changes in this version + func APIKey(apiKey string) func(r *APIClient) + func APIOptions(apiOptions ...func(*APIClient)) func(r *Engine) + func APIUrl(url string) func(r *APIClient) + func PollingInterval(interval time.Duration) func(r *Engine) + func Retries(retries int) func(r *APIClient) + func TargetingMatch(variationGroup *VariationGroup, visitorID string, ...) (bool, error) + func Timeout(timeout time.Duration) func(r *APIClient) + type APIClient struct + func NewAPIClient(envID string, params ...func(*APIClient)) *APIClient + func (r APIClient) GetConfiguration() (*Configuration, error) + type APIClientMock struct + func NewAPIClientMock(envID string, responseMock *Configuration, statusCode int) *APIClientMock + func (r APIClientMock) GetConfiguration() (*Configuration, error) + type Campaign struct + ID string + Type string + VariationGroups []*VariationGroup + type ConfigAPIInterface interface + GetConfiguration func() (*Configuration, error) + type Configuration struct + Campaigns []*Campaign + Panic bool + type Engine struct + func GetBucketingEngineMock(testEnvID string, cache cache.Manager) *Engine + func NewEngine(envID string, cacheManager cache.Manager, params ...func(*Engine)) (*Engine, error) + func (b *Engine) GetModifications(visitorID string, context map[string]interface{}) (*model.APIClientResponse, error) + func (b *Engine) Load() error + type EngineOptions struct + PollingInterval time.Duration + type Targeting struct + Key string + Operator TargetingOperator + Value interface{} + type TargetingGroup struct + Targetings []*Targeting + type TargetingOperator string + const CONTAINS + const ENDS_WITH + const EQUALS + const GREATER_THAN + const GREATER_THAN_OR_EQUALS + const LOWER_THAN + const LOWER_THAN_OR_EQUALS + const NOT_CONTAINS + const NOT_EQUALS + const NULL + const STARTS_WITH + type TargetingWrapper struct + TargetingGroups []*TargetingGroup + type Variation struct + Allocation int + ID string + Modifications model.Modification + Reference bool + func GetRandomAllocation(visitorID string, variationGroup *VariationGroup) (*Variation, error) + type VariationGroup struct + ID string + Targeting TargetingWrapper + Variations []*Variation Other modules containing this package github.com/abtasty/flagship-go-sdk/v2