Versions in this module Expand all Collapse all v0 v0.1.0 Feb 17, 2021 Changes in this version + var DefaultUserID = newDefaultUserID() + func New(ctx context.Context, userID string, attrs map[string]string) context.Context + func NewDefault(ctx context.Context) context.Context + type APIKey string + type Client interface + BoolVariation func(ctx context.Context, featureID string, def bool) (bool, Tracker) + Close func() + Float64Variation func(ctx context.Context, featureID string, def float64) (float64, Tracker) + Int64Variation func(ctx context.Context, featureID string, def int64) (int64, Tracker) + JSONVariation func(ctx context.Context, featureID string, dst interface{}) Tracker + StringVariation func(ctx context.Context, featureID string, def string) (string, Tracker) + func NewClient(ctx context.Context, cfg *Config) (Client, error) + type Config struct + APIKey APIKey + EventBufferSize int + EventFlushInterval time.Duration + Host Host + Log func(error) + Tag Tag + type Error struct + Evaluation *event.EvaluationEvent + FeatureID string + Goal *event.GoalEvent + Message string + Retryable bool + UserAttributes map[string]string + UserID string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Host string + type Tag string + type Tracker interface + Track func(goalID string, value float64)