Versions in this module Expand all Collapse all v1 v1.0.0 Jun 14, 2022 Changes in this version + const DefaultBaseURI + const DefaultTimeout + type Client struct + func DefaultClient(apiKey string) *Client + func NewClient(apiKey string, config Config) *Client + func (c *Client) FeatureEnabled(name string) (bool, error) + func (c *Client) FeatureEnabledWithContext(ctx context.Context, name string) (bool, error) + func (c *Client) GetFeatures() ([]Flag, error) + func (c *Client) GetFeaturesWithContext(ctx context.Context) ([]Flag, error) + func (c *Client) GetTrait(user User, key string) (*Trait, error) + func (c *Client) GetTraitWithContext(ctx context.Context, user User, key string) (*Trait, error) + func (c *Client) GetTraits(user User, keys ...string) ([]*Trait, error) + func (c *Client) GetTraitsWithContext(ctx context.Context, user User, keys ...string) ([]*Trait, error) + func (c *Client) GetUserFeatures(user User) ([]Flag, error) + func (c *Client) GetUserFeaturesWithContext(ctx context.Context, user User) ([]Flag, error) + func (c *Client) GetUserValue(user User, name string) (interface{}, error) + func (c *Client) GetUserValueWithContext(ctx context.Context, user User, name string) (interface{}, error) + func (c *Client) GetValue(name string) (interface{}, error) + func (c *Client) GetValueWithContext(ctx context.Context, name string) (interface{}, error) + func (c *Client) HasFeature(name string) (bool, error) + func (c *Client) HasFeatureWithContext(ctx context.Context, name string) (bool, error) + func (c *Client) HasUserFeature(user User, name string) (bool, error) + func (c *Client) HasUserFeatureWithContext(ctx context.Context, user User, name string) (bool, error) + func (c *Client) RemoveProxy() + func (c *Client) SetProxy(proxyUrl string) + func (c *Client) UpdateTrait(user User, toUpdate *Trait) (*Trait, error) + func (c *Client) UpdateTraitWithContext(ctx context.Context, user User, toUpdate *Trait) (*Trait, error) + func (c *Client) UpdateTraits(user User, object interface{}) ([]*Trait, error) + func (c *Client) UpdateTraitsWithContext(ctx context.Context, user User, object interface{}) ([]*Trait, error) + func (c *Client) UserFeatureEnabled(user User, name string) (bool, error) + func (c *Client) UserFeatureEnabledWithContext(ctx context.Context, user User, name string) (bool, error) + type Config struct + BaseURI string + Timeout time.Duration + func DefaultConfig() Config + type Feature struct + Description string + Name string + Type string + type Flag struct + Enabled bool + Feature Feature + StateValue interface{} + type Trait struct + Identity User + Key string + Value string + type User struct + Identifier string Other modules containing this package github.com/Flagsmith/flagsmith-go-client/v2 github.com/Flagsmith/flagsmith-go-client/v3 github.com/Flagsmith/flagsmith-go-client/v4 github.com/Flagsmith/flagsmith-go-client/v5