Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶ added in v0.40.1
func Init(conf Config, log logrus.FieldLogger) error
Init will initialize global client with a launch darkly client
func SetGlobalClient ¶ added in v0.40.1
func SetGlobalClient(client Client)
Types ¶
type Client ¶
type Client interface { Enabled(key, userID string) bool EnabledUser(key string, user ld.User) bool Variation(key, defaultVal, userID string) string VariationUser(key string, defaultVal string, user ld.User) string }
func GetGlobalClient ¶ added in v0.40.1
func GetGlobalClient() Client
type MockClient ¶
func (MockClient) Enabled ¶
func (c MockClient) Enabled(key, userID string) bool
func (MockClient) EnabledUser ¶ added in v0.42.0
func (c MockClient) EnabledUser(key string, _ ld.User) bool
func (MockClient) Variation ¶
func (c MockClient) Variation(key string, defaultVal string, userID string) string
func (MockClient) VariationUser ¶ added in v0.42.0
Click to show internal directories.
Click to hide internal directories.