Help us shape the future of Go! Take the 2026 Go Developer Survey

launchdarkly

package
v0.4.72 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 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 NewServiceClient added in v0.3.122

func NewServiceClient() (*Client, error)

func (*Client) ClientSignalsEnabled added in v0.4.66

func (ldClient *Client) ClientSignalsEnabled() bool

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