statsig

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExperiment

func GetExperiment(user statsig.User, experiment string) statsig.DynamicConfig

func GetFeatureFlag

func GetFeatureFlag(user statsig.User, flag string) statsig.FeatureGate

func Initialize

func Initialize(c *Config)

func Shutdown

func Shutdown()

Types

type Config

type Config struct {
	SecretKey          string        `mapstructure:"secret_key"`
	LocalMode          bool          `mapstructure:"local_mode"`
	ConfigSyncInterval time.Duration `mapstructure:"config_sync_interval"`
	IDListSyncInterval time.Duration `mapstructure:"id_list_sync_interval"`
	// contains filtered or unexported fields
}

Config stores the configuration for the statsig.

func NewConfig

func NewConfig() (*Config, error)

NewConfig returns a new StatsigConfig instance.

Jump to

Keyboard shortcuts

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