launchdarkly

package
v0.4.31 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewServiceClient added in v0.3.122

func NewServiceClient() (*Client, error)

func (*Client) GetCompressionStrength added in v0.3.188

func (ldClient *Client) GetCompressionStrength() any

func (*Client) GetFeatureFlagValue

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

func (*Client) ManagedBuilderEnabled added in v0.3.149

func (ldClient *Client) ManagedBuilderEnabled() bool

func (*Client) ManagedPostgresEnabled added in v0.3.122

func (ldClient *Client) ManagedPostgresEnabled() bool

func (*Client) UnmanagedPostgresEnabled added in v0.3.122

func (ldClient *Client) UnmanagedPostgresEnabled() bool

func (*Client) UseZstdEnabled added in v0.3.188

func (ldClient *Client) UseZstdEnabled() bool

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