launchdarkly

package
v0.3.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextWithClient

func NewContextWithClient(ctx context.Context, ldClient *Client) context.Context

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func ClientFromContext

func ClientFromContext(ctx context.Context) *Client

func NewClient

func NewClient(ctx context.Context, userInfo UserInfo) (*Client, error)

func (*Client) GetFeatureFlagValue

func (ldClient *Client) GetFeatureFlagValue(key string, defaultValue any) any

type FeatureFlag

type FeatureFlag struct {
	FlagVersion int  `json:"flagVersion"`
	TrackEvents bool `json:"trackEvents"`
	Value       any  `json:"value"`
	Version     int  `json:"version"`
	Variation   int  `json:"variation"`
}

type UserInfo

type UserInfo struct {
	OrganizationID string
	UserID         int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL