Documentation
¶
Overview ¶
Package ldstoreimpl contains SDK data store implementation objects that may be used by external code such as custom data store integrations and internal LaunchDarkly components. Application code normally will not use this package.
Index ¶
- func AllKinds() []ldstoretypes.DataKind
- func Features() ldstoretypes.DataKind
- func NewDataStoreEvaluatorDataProvider(store interfaces.DataStore, loggers ldlog.Loggers) ldeval.DataProvider
- func NewUnboundedSegmentMembershipFromKeys(includedKeys []string, excludedKeys []string) interfaces.UnboundedSegmentMembership
- func Segments() ldstoretypes.DataKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllKinds ¶
func AllKinds() []ldstoretypes.DataKind
AllKinds returns a list of supported StoreDataKinds. Among other things, this list might be used by data stores to know what data (namespaces) to expect.
func Features ¶
func Features() ldstoretypes.DataKind
Features returns the StoreDataKind instance corresponding to feature flag data.
func NewDataStoreEvaluatorDataProvider ¶
func NewDataStoreEvaluatorDataProvider(store interfaces.DataStore, loggers ldlog.Loggers) ldeval.DataProvider
NewDataStoreEvaluatorDataProvider provides an adapter for using a DataStore with the Evaluator type in go-server-sdk-evaluation.
Normal use of the SDK does not require this type. It is provided for use by other LaunchDarkly components that use DataStore and Evaluator separately from the SDK.
func NewUnboundedSegmentMembershipFromKeys ¶
func NewUnboundedSegmentMembershipFromKeys( includedKeys []string, excludedKeys []string, ) interfaces.UnboundedSegmentMembership
NewUnboundedSegmentMembershipFromKeys creates an UnboundedSegmentMembership based on the specified lists of included and excluded keys. This method is intended to be used by unbounded segment store implementations; application code does not need to use it.
The returned object's CheckMembership method will return ldvalue.NewOptionalBool(true) for any key that is in the included list, ldvalue.NewOptionalBool(false) for any key that is in the excluded list and *not* also in the included list, and ldvalue.OptionalBool{} (undefined) for all other keys.
The exact implementation type of the returned value may vary, to provide the most efficient representation of the data.
func Segments ¶
func Segments() ldstoretypes.DataKind
Segments returns the StoreDataKind instance corresponding to user segment data.
Types ¶
This section is empty.