1 package ldstoreimpl 2 3 import ( 4 "github.com/launchdarkly/go-server-sdk/v6/internal/datakinds" 5 "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoretypes" 6 ) 7 8 // This file contains the public API for accessing things in internal/datakinds. We need to export 9 // these things in order to support development of custom database integrations and internal LD 10 // components, but we don't want to expose the underlying global variables. 11 12 // AllKinds returns a list of supported StoreDataKinds. Among other things, this list might 13 // be used by data stores to know what data (namespaces) to expect. 14 func AllKinds() []ldstoretypes.DataKind { 15 return datakinds.AllDataKinds() 16 } 17 18 // Features returns the StoreDataKind instance corresponding to feature flag data. 19 func Features() ldstoretypes.DataKind { 20 return datakinds.Features 21 } 22 23 // Segments returns the StoreDataKind instance corresponding to user segment data. 24 func Segments() ldstoretypes.DataKind { 25 return datakinds.Segments 26 } 27