Documentation
¶
Index ¶
- Constants
- Variables
- func GeneratePlatformData() *api.PlatformData
- func SetLogger(log Logger)
- type AdvancedOptions
- type AfterHookError
- type BaseVariable
- type BatchEventsBody
- type BeforeHookError
- type BucketedUserConfig
- type Client
- func (c *Client) AddHook(hook *EvalHook)
- func (c *Client) AllFeatures(user User) (map[string]Feature, error)
- func (c *Client) AllVariables(user User) (map[string]ReadOnlyVariable, error)
- func (c *Client) ChangeBasePath(path string)
- func (c *Client) ClearHooks()
- func (c *Client) Close() (err error)
- func (c *Client) EventQueueMetrics() (int32, int32, int32)
- func (c *Client) FlushEvents() error
- func (c *Client) GetMetadata() (ConfigMetadata, error)
- func (c *Client) GetRawConfig() (config []byte, etag, lastmodified string, err error)
- func (c *Client) IsLocalBucketing() bool
- func (c *Client) OpenFeatureProvider() DevCycleProvider
- func (c *Client) SetClientCustomData(customData map[string]interface{}) error
- func (c *Client) SetOptions(dvcOptions Options)
- func (c *Client) Track(user User, event Event) (bool, error)
- func (c *Client) Variable(userdata User, key string, defaultValue interface{}) (result Variable, err error)
- func (c *Client) VariableValue(userdata User, key string, defaultValue interface{}) (interface{}, error)
- type ClientImpl
- type ConfigMetadata
- type ConfigReceiver
- type DVCClientdeprecated
- type DVCEventdeprecated
- type DVCOptionsdeprecated
- type DVCUserdeprecated
- type DevCycleProvider
- func (p DevCycleProvider) BooleanEvaluation(ctx context.Context, flag string, defaultValue bool, ...) openfeature.BoolResolutionDetail
- func (p DevCycleProvider) FloatEvaluation(ctx context.Context, flag string, defaultValue float64, ...) openfeature.FloatResolutionDetail
- func (p DevCycleProvider) Hooks() []openfeature.Hook
- func (p DevCycleProvider) Init(evaluationContext openfeature.EvaluationContext) error
- func (p DevCycleProvider) IntEvaluation(ctx context.Context, flag string, defaultValue int64, ...) openfeature.IntResolutionDetail
- func (p DevCycleProvider) Metadata() openfeature.Metadata
- func (p DevCycleProvider) ObjectEvaluation(ctx context.Context, flag string, defaultValue interface{}, ...) openfeature.InterfaceResolutionDetail
- func (p DevCycleProvider) Shutdown()
- func (p DevCycleProvider) Status() openfeature.State
- func (p DevCycleProvider) StringEvaluation(ctx context.Context, flag string, defaultValue string, ...) openfeature.StringResolutionDetail
- func (p DevCycleProvider) Track(ctx context.Context, trackingEventName string, ...)
- type DiscardLogger
- type EnvironmentConfigManager
- func (e *EnvironmentConfigManager) Close()
- func (e *EnvironmentConfigManager) GetETag() string
- func (e *EnvironmentConfigManager) GetLastModified() string
- func (e *EnvironmentConfigManager) GetRawConfig() []byte
- func (e *EnvironmentConfigManager) HasConfig() bool
- func (e *EnvironmentConfigManager) StartPolling(interval time.Duration)
- func (e *EnvironmentConfigManager) StartSSE(url string) error
- func (e *EnvironmentConfigManager) StopPolling()
- type ErrorResponse
- type EvalHook
- type EvalHookRunner
- func (r *EvalHookRunner) AddHook(hook *EvalHook)
- func (r *EvalHookRunner) ClearHooks()
- func (r *EvalHookRunner) RunAfterHooks(hooks []*EvalHook, context *HookContext, variable api.Variable) error
- func (r *EvalHookRunner) RunBeforeHooks(hooks []*EvalHook, context *HookContext) error
- func (r *EvalHookRunner) RunErrorHooks(hooks []*EvalHook, context *HookContext, evalError error)
- func (r *EvalHookRunner) RunOnFinallyHooks(hooks []*EvalHook, context *HookContext, variable api.Variable)
- type Event
- type EventFlushCallback
- type EventManager
- func (e *EventManager) Close() (err error)
- func (e *EventManager) FlushEvents() (err error)
- func (e *EventManager) GetUUID() string
- func (e *EventManager) Metrics() (int32, int32, int32)
- func (e *EventManager) QueueEvent(user User, event Event) error
- func (e *EventManager) QueueSDKConfigEvent(req http.Request, resp http.Response) error
- func (e *EventManager) QueueVariableDefaultedEvent(variableKey string, defaultReason api.DefaultReason) error
- type EventQueueOptions
- type Feature
- type FeatureVariation
- type FlushPayload
- type FlushResult
- type GenericError
- type HTTPConfiguration
- type HookContext
- type InternalEventQueue
- type LocalBucketing
- type Logger
- type NativeLocalBucketing
- func (n *NativeLocalBucketing) Close()
- func (n *NativeLocalBucketing) FlushEventQueue(callback EventFlushCallback) error
- func (n *NativeLocalBucketing) GenerateBucketedConfigForUser(user User) (ret *BucketedUserConfig, err error)
- func (n *NativeLocalBucketing) GetETag() string
- func (n *NativeLocalBucketing) GetLastModified() string
- func (n *NativeLocalBucketing) GetRawConfig() []byte
- func (n *NativeLocalBucketing) GetRayId() string
- func (n *NativeLocalBucketing) GetUUID() string
- func (n *NativeLocalBucketing) HasConfig() bool
- func (n *NativeLocalBucketing) Metrics() (int32, int32, int32)
- func (n *NativeLocalBucketing) QueueEvent(user User, event Event) error
- func (n *NativeLocalBucketing) QueueVariableDefaulted(variableKey string, defaultReason api.DefaultReason) error
- func (n *NativeLocalBucketing) SetClientCustomData(customData map[string]interface{}) error
- func (n *NativeLocalBucketing) StoreConfig(configJSON []byte, eTag, rayId, lastModified string) error
- func (n *NativeLocalBucketing) UserQueueLength() (int, error)
- func (n *NativeLocalBucketing) Variable(user User, variableKey string, variableType string) (Variable, error)
- type Options
- type PlatformData
- type ReadOnlyVariable
- type SDKEvent
- type SSEManager
- type User
- type UserDataAndEventsBody
- type Variable
Constants ¶
const CONFIG_RETRIES = 1
const DEVCYCLE_USER_ID_KEY = "userId"
const DEVCYCLE_USER_ID_UNDERSCORE_KEY = "user_id"
const NATIVE_SDK = true
const VERSION = "2.23.0"
Variables ¶
var DEFAULT_USER_TIME = time.Time{}
This value will always be set to zero as the user.CreatedDate is not actually used in native bucketing
var ErrInvalidDefaultValue = errors.New("the default value for variable is not of type Boolean, Number, String, or JSON")
var ErrQueueFull = bucketing.ErrQueueFull
Functions ¶
func GeneratePlatformData ¶ added in v2.9.5
func GeneratePlatformData() *api.PlatformData
Types ¶
type AdvancedOptions ¶ added in v2.7.0
type AdvancedOptions struct { OverridePlatformData *api.PlatformData OverrideConfigWithV1 bool OverrideMaxSSEPolling time.Duration }
type AfterHookError ¶ added in v2.22.0
AfterHookError represents an error that occurred during an after hook
func (*AfterHookError) Error ¶ added in v2.22.0
func (e *AfterHookError) Error() string
func (*AfterHookError) Unwrap ¶ added in v2.22.0
func (e *AfterHookError) Unwrap() error
type BaseVariable ¶ added in v2.9.5
type BaseVariable = api.BaseVariable
type BatchEventsBody ¶
type BatchEventsBody = api.BatchEventsBody
type BeforeHookError ¶ added in v2.22.0
BeforeHookError represents an error that occurred during a before hook
func (*BeforeHookError) Error ¶ added in v2.22.0
func (e *BeforeHookError) Error() string
func (*BeforeHookError) Unwrap ¶ added in v2.22.0
func (e *BeforeHookError) Unwrap() error
type BucketedUserConfig ¶
type BucketedUserConfig = api.BucketedUserConfig
type Client ¶ added in v2.10.0
type Client struct { DevCycleOptions *Options // contains filtered or unexported fields }
DevCycle Client In most cases there should be only one, shared, Client.
func NewClient ¶ added in v2.10.0
NewClient creates a new API client. optionally pass a custom http.Client to allow for advanced features such as caching.
func NewDVCClient
deprecated
func (*Client) AllFeatures ¶ added in v2.10.0
Get all features by key for user data
- @param body
@return map[string]Feature
func (*Client) AllVariables ¶ added in v2.10.0
func (c *Client) AllVariables(user User) (map[string]ReadOnlyVariable, error)
func (*Client) ChangeBasePath ¶ added in v2.10.0
Change base path to allow switching to mocks
func (*Client) ClearHooks ¶ added in v2.22.0
func (c *Client) ClearHooks()
func (*Client) Close ¶ added in v2.10.0
Close the client and flush any pending events. Stop any ongoing tickers
func (*Client) EventQueueMetrics ¶ added in v2.10.0
func (*Client) FlushEvents ¶ added in v2.10.0
func (*Client) GetMetadata ¶ added in v2.23.0
func (c *Client) GetMetadata() (ConfigMetadata, error)
GetMetadata returns the current configuration metadata Returns error for cloud SDK or when config is not available
func (*Client) GetRawConfig ¶ added in v2.10.9
func (*Client) IsLocalBucketing ¶ added in v2.11.0
func (*Client) OpenFeatureProvider ¶ added in v2.11.0
func (c *Client) OpenFeatureProvider() DevCycleProvider
Convenience method for creating a DevCycleProvider from a Client
func (*Client) SetClientCustomData ¶ added in v2.10.0
func (*Client) SetOptions ¶ added in v2.10.0
type ClientImpl ¶ added in v2.11.0
type ConfigMetadata ¶ added in v2.23.0
type ConfigMetadata struct { Project api.ProjectMetadata `json:"project,omitempty"` Environment api.EnvironmentMetadata `json:"environment,omitempty"` }
type ConfigReceiver ¶ added in v2.9.4
type DVCOptions
deprecated
type DVCOptions = Options
Deprecated: Use devcycle.Options instead
type DevCycleProvider ¶ added in v2.11.0
type DevCycleProvider struct { Client ClientImpl // contains filtered or unexported fields }
DevCycleProvider implements the FeatureProvider interface and provides functions for evaluating flags
func NewDevCycleProvider ¶ added in v2.20.0
func NewDevCycleProvider(sdkKey string, options *Options) (provider DevCycleProvider, err error)
func (DevCycleProvider) BooleanEvaluation ¶ added in v2.11.0
func (p DevCycleProvider) BooleanEvaluation(ctx context.Context, flag string, defaultValue bool, evalCtx openfeature.FlattenedContext) openfeature.BoolResolutionDetail
BooleanEvaluation returns a boolean flag
func (DevCycleProvider) FloatEvaluation ¶ added in v2.11.0
func (p DevCycleProvider) FloatEvaluation(ctx context.Context, flag string, defaultValue float64, evalCtx openfeature.FlattenedContext) openfeature.FloatResolutionDetail
FloatEvaluation returns a float flag
func (DevCycleProvider) Hooks ¶ added in v2.11.0
func (p DevCycleProvider) Hooks() []openfeature.Hook
Hooks returns hooks
func (DevCycleProvider) Init ¶ added in v2.20.0
func (p DevCycleProvider) Init(evaluationContext openfeature.EvaluationContext) error
Init holds initialization logic of the provider - we don't init a provider specific datamodel so this will always be nil
func (DevCycleProvider) IntEvaluation ¶ added in v2.11.0
func (p DevCycleProvider) IntEvaluation(ctx context.Context, flag string, defaultValue int64, evalCtx openfeature.FlattenedContext) openfeature.IntResolutionDetail
IntEvaluation returns an int flag
func (DevCycleProvider) Metadata ¶ added in v2.11.0
func (p DevCycleProvider) Metadata() openfeature.Metadata
Metadata returns the metadata of the provider
func (DevCycleProvider) ObjectEvaluation ¶ added in v2.11.0
func (p DevCycleProvider) ObjectEvaluation(ctx context.Context, flag string, defaultValue interface{}, evalCtx openfeature.FlattenedContext) openfeature.InterfaceResolutionDetail
ObjectEvaluation returns an object flag
func (DevCycleProvider) Shutdown ¶ added in v2.20.0
func (p DevCycleProvider) Shutdown()
Shutdown define the shutdown operation of the provider
func (DevCycleProvider) Status ¶ added in v2.20.0
func (p DevCycleProvider) Status() openfeature.State
Status expose the status of the provider
func (DevCycleProvider) StringEvaluation ¶ added in v2.11.0
func (p DevCycleProvider) StringEvaluation(ctx context.Context, flag string, defaultValue string, evalCtx openfeature.FlattenedContext) openfeature.StringResolutionDetail
StringEvaluation returns a string flag
func (DevCycleProvider) Track ¶ added in v2.20.0
func (p DevCycleProvider) Track(ctx context.Context, trackingEventName string, evalCtx openfeature.EvaluationContext, details openfeature.TrackingEventDetails)
type DiscardLogger ¶ added in v2.3.0
type DiscardLogger = util.DiscardLogger
type EnvironmentConfigManager ¶
type EnvironmentConfigManager struct { InternalClientEvents chan api.ClientEvent // contains filtered or unexported fields }
func NewEnvironmentConfigManager ¶ added in v2.9.4
func NewEnvironmentConfigManager( sdkKey string, localBucketing ConfigReceiver, manager *EventManager, options *Options, cfg *HTTPConfiguration, ) (configManager *EnvironmentConfigManager, err error)
func (*EnvironmentConfigManager) Close ¶
func (e *EnvironmentConfigManager) Close()
func (*EnvironmentConfigManager) GetETag ¶ added in v2.12.0
func (e *EnvironmentConfigManager) GetETag() string
func (*EnvironmentConfigManager) GetLastModified ¶ added in v2.14.0
func (e *EnvironmentConfigManager) GetLastModified() string
func (*EnvironmentConfigManager) GetRawConfig ¶ added in v2.12.0
func (e *EnvironmentConfigManager) GetRawConfig() []byte
func (*EnvironmentConfigManager) HasConfig ¶
func (e *EnvironmentConfigManager) HasConfig() bool
func (*EnvironmentConfigManager) StartPolling ¶ added in v2.9.4
func (e *EnvironmentConfigManager) StartPolling(interval time.Duration)
func (*EnvironmentConfigManager) StartSSE ¶ added in v2.16.0
func (e *EnvironmentConfigManager) StartSSE(url string) error
func (*EnvironmentConfigManager) StopPolling ¶ added in v2.16.0
func (e *EnvironmentConfigManager) StopPolling()
type ErrorResponse ¶
type ErrorResponse = api.ErrorResponse
Aliases for the types in the api package
type EvalHook ¶ added in v2.22.0
type EvalHook struct { // Before is called before variable evaluation Before func(context *HookContext) error // After is called after variable evaluation (only if Before didn't error) After func(context *HookContext, variable *api.Variable) error // OnFinally is called after variable evaluation regardless of errors OnFinally func(context *HookContext, variable *api.Variable) error // Error is called when an error occurs during evaluation Error func(context *HookContext, evalError error) error }
EvalHook represents a hook that can be executed during variable evaluation
func NewEvalHook ¶ added in v2.22.0
func NewEvalHook(before func(context *HookContext) error, after func(context *HookContext, variable *api.Variable) error, onFinally func(context *HookContext, variable *api.Variable) error, error func(context *HookContext, evalError error) error) *EvalHook
NewEvalHook creates a new EvalHook with the provided functions
type EvalHookRunner ¶ added in v2.22.0
type EvalHookRunner struct {
// contains filtered or unexported fields
}
EvalHookRunner manages and executes evaluation hooks
func NewEvalHookRunner ¶ added in v2.22.0
func NewEvalHookRunner(hooks []*EvalHook) *EvalHookRunner
NewEvalHookRunner creates a new EvalHookRunner with the provided hooks
func (*EvalHookRunner) AddHook ¶ added in v2.22.0
func (r *EvalHookRunner) AddHook(hook *EvalHook)
func (*EvalHookRunner) ClearHooks ¶ added in v2.22.0
func (r *EvalHookRunner) ClearHooks()
func (*EvalHookRunner) RunAfterHooks ¶ added in v2.22.0
func (r *EvalHookRunner) RunAfterHooks(hooks []*EvalHook, context *HookContext, variable api.Variable) error
RunAfterHooks runs all after hooks in reverse order
func (*EvalHookRunner) RunBeforeHooks ¶ added in v2.22.0
func (r *EvalHookRunner) RunBeforeHooks(hooks []*EvalHook, context *HookContext) error
RunBeforeHooks runs all before hooks in order
func (*EvalHookRunner) RunErrorHooks ¶ added in v2.22.0
func (r *EvalHookRunner) RunErrorHooks(hooks []*EvalHook, context *HookContext, evalError error)
RunErrorHooks runs all error hooks in reverse order
func (*EvalHookRunner) RunOnFinallyHooks ¶ added in v2.22.0
func (r *EvalHookRunner) RunOnFinallyHooks(hooks []*EvalHook, context *HookContext, variable api.Variable)
RunOnFinallyHooks runs all onFinally hooks in reverse order
type EventFlushCallback ¶ added in v2.10.0
type EventFlushCallback func(payloads map[string]FlushPayload) (*FlushResult, error)
type EventManager ¶ added in v2.10.0
type EventManager struct {
// contains filtered or unexported fields
}
EventManager is responsible for flushing the event queue and reporting events to the server. It wraps an InternalEventQueue which is implemented either natively by the bucketing package or in WASM.
func NewEventManager ¶ added in v2.10.0
func NewEventManager(options *Options, localBucketing InternalEventQueue, cfg *HTTPConfiguration, sdkKey string) (eventQueue *EventManager, err error)
func (*EventManager) Close ¶ added in v2.10.0
func (e *EventManager) Close() (err error)
func (*EventManager) FlushEvents ¶ added in v2.10.0
func (e *EventManager) FlushEvents() (err error)
func (*EventManager) GetUUID ¶ added in v2.16.0
func (e *EventManager) GetUUID() string
func (*EventManager) Metrics ¶ added in v2.10.0
func (e *EventManager) Metrics() (int32, int32, int32)
func (*EventManager) QueueEvent ¶ added in v2.10.0
func (e *EventManager) QueueEvent(user User, event Event) error
func (*EventManager) QueueSDKConfigEvent ¶ added in v2.16.0
func (*EventManager) QueueVariableDefaultedEvent ¶ added in v2.10.1
func (e *EventManager) QueueVariableDefaultedEvent(variableKey string, defaultReason api.DefaultReason) error
type EventQueueOptions ¶
type EventQueueOptions = api.EventQueueOptions
type FeatureVariation ¶
type FeatureVariation = api.FeatureVariation
type FlushPayload ¶
type FlushPayload = api.FlushPayload
type FlushResult ¶ added in v2.8.0
type GenericError ¶
type GenericError struct {
// contains filtered or unexported fields
}
GenericError Provides access to the body, error and model on returned errors.
func (GenericError) Body ¶
func (e GenericError) Body() []byte
Body returns the raw bytes of the response
func (GenericError) Error ¶
func (e GenericError) Error() string
Error returns non-empty string if there was an error.
func (GenericError) Model ¶
func (e GenericError) Model() interface{}
Model returns the unpacked model of the error
type HTTPConfiguration ¶
type HTTPConfiguration struct { BasePath string `json:"basePath,omitempty"` ConfigCDNBasePath string `json:"configCDNBasePath,omitempty"` EventsAPIBasePath string `json:"eventsAPIBasePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client }
func NewConfiguration ¶
func NewConfiguration(options *Options) *HTTPConfiguration
func (*HTTPConfiguration) AddDefaultHeader ¶
func (c *HTTPConfiguration) AddDefaultHeader(key string, value string)
type HookContext ¶ added in v2.22.0
type HookContext struct { // User is the user for whom the variable is being evaluated User User // Key is the variable key being evaluated Key string // DefaultValue is the default value provided for the variable DefaultValue interface{} // VariableDetails is the variable that gets evaluated VariableDetails api.Variable // Metadata contains configuration metadata (empty for cloud SDK and when not initialized) Metadata ConfigMetadata }
HookContext stores the context information passed to hooks during variable evaluation
type InternalEventQueue ¶ added in v2.10.0
type LocalBucketing ¶ added in v2.9.5
type LocalBucketing interface { ConfigReceiver InternalEventQueue GenerateBucketedConfigForUser(user User) (ret *BucketedUserConfig, err error) SetClientCustomData(map[string]interface{}) error Variable(user User, key string, variableType string) (variable Variable, err error) Close() }
type NativeLocalBucketing ¶ added in v2.10.2
type NativeLocalBucketing struct {
// contains filtered or unexported fields
}
func NewNativeLocalBucketing ¶ added in v2.10.2
func NewNativeLocalBucketing(sdkKey string, platformData *api.PlatformData, options *Options) (*NativeLocalBucketing, error)
func (*NativeLocalBucketing) Close ¶ added in v2.10.2
func (n *NativeLocalBucketing) Close()
func (*NativeLocalBucketing) FlushEventQueue ¶ added in v2.10.2
func (n *NativeLocalBucketing) FlushEventQueue(callback EventFlushCallback) error
func (*NativeLocalBucketing) GenerateBucketedConfigForUser ¶ added in v2.10.2
func (n *NativeLocalBucketing) GenerateBucketedConfigForUser(user User) (ret *BucketedUserConfig, err error)
func (*NativeLocalBucketing) GetETag ¶ added in v2.12.0
func (n *NativeLocalBucketing) GetETag() string
func (*NativeLocalBucketing) GetLastModified ¶ added in v2.14.0
func (n *NativeLocalBucketing) GetLastModified() string
func (*NativeLocalBucketing) GetRawConfig ¶ added in v2.12.0
func (n *NativeLocalBucketing) GetRawConfig() []byte
func (*NativeLocalBucketing) GetRayId ¶ added in v2.13.0
func (n *NativeLocalBucketing) GetRayId() string
func (*NativeLocalBucketing) GetUUID ¶ added in v2.16.0
func (n *NativeLocalBucketing) GetUUID() string
func (*NativeLocalBucketing) HasConfig ¶ added in v2.12.0
func (n *NativeLocalBucketing) HasConfig() bool
func (*NativeLocalBucketing) Metrics ¶ added in v2.10.2
func (n *NativeLocalBucketing) Metrics() (int32, int32, int32)
func (*NativeLocalBucketing) QueueEvent ¶ added in v2.10.2
func (n *NativeLocalBucketing) QueueEvent(user User, event Event) error
func (*NativeLocalBucketing) QueueVariableDefaulted ¶ added in v2.12.0
func (n *NativeLocalBucketing) QueueVariableDefaulted(variableKey string, defaultReason api.DefaultReason) error
func (*NativeLocalBucketing) SetClientCustomData ¶ added in v2.10.2
func (n *NativeLocalBucketing) SetClientCustomData(customData map[string]interface{}) error
func (*NativeLocalBucketing) StoreConfig ¶ added in v2.10.2
func (n *NativeLocalBucketing) StoreConfig(configJSON []byte, eTag, rayId, lastModified string) error
func (*NativeLocalBucketing) UserQueueLength ¶ added in v2.10.2
func (n *NativeLocalBucketing) UserQueueLength() (int, error)
type Options ¶ added in v2.10.0
type Options struct { EnableEdgeDB bool `json:"enableEdgeDb,omitempty"` EnableCloudBucketing bool `json:"enableCloudBucketing,omitempty"` EventFlushIntervalMS time.Duration `json:"eventFlushIntervalMS,omitempty"` ConfigPollingIntervalMS time.Duration `json:"configPollingIntervalMS,omitempty"` RequestTimeout time.Duration `json:"requestTimeout,omitempty"` DisableAutomaticEventLogging bool `json:"disableAutomaticEventLogging,omitempty"` DisableCustomEventLogging bool `json:"disableCustomEventLogging,omitempty"` DisableETagMatching bool `json:"disableETagMatching,omitempty"` DisableRealtimeUpdates bool `json:"disableRealtimeUpdates,omitempty"` // Deprecated: EnableBetaRealtimeUpdates is no longer supported. SSE connections are enabled by default. EnableBetaRealtimeUpdates bool `json:"enableRealtimeUpdates,omitempty"` MaxEventQueueSize int `json:"maxEventsPerFlush,omitempty"` FlushEventQueueSize int `json:"minEventsPerFlush,omitempty"` ConfigCDNURI string EventsAPIURI string ClientEventHandler chan api.ClientEvent BucketingAPIURI string Logger util.Logger EvalHooks []*EvalHook AdvancedOptions // contains filtered or unexported fields }
func (*Options) CheckDefaults ¶ added in v2.10.0
func (o *Options) CheckDefaults()
type PlatformData ¶
type PlatformData = api.PlatformData
type ReadOnlyVariable ¶
type ReadOnlyVariable = api.ReadOnlyVariable
type SSEManager ¶ added in v2.16.0
type SSEManager struct { Started bool Connected atomic.Bool // contains filtered or unexported fields }
func (*SSEManager) Close ¶ added in v2.16.0
func (m *SSEManager) Close()
func (*SSEManager) StartSSEOverride ¶ added in v2.16.0
func (m *SSEManager) StartSSEOverride(url string) error
func (*SSEManager) StopSSE ¶ added in v2.16.0
func (m *SSEManager) StopSSE()
type UserDataAndEventsBody ¶
type UserDataAndEventsBody = api.UserDataAndEventsBody
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
* DevCycle Bucketing API * * Documents the DevCycle Bucketing API which provides and API interface to User Bucketing and for generated SDKs.
|
* DevCycle Bucketing API * * Documents the DevCycle Bucketing API which provides and API interface to User Bucketing and for generated SDKs. |
example
|
|
cloud
command
|
|
hooks
command
|
|
local
command
|
|
openfeature
command
|
|