Versions in this module Expand all Collapse all v0 v0.1.5 Feb 22, 2026 v0.1.1 Feb 22, 2026 v0.1.0 Feb 22, 2026 Changes in this version + type FlagRow struct + CreatedAt time.Time + DefaultVal string + Description string + Enabled bool + Key string + Percentage float64 + Tags []string + Type string + UpdatedAt time.Time + type OverrideRow struct + FlagKey string + ID int64 + Scope string + ScopeKey string + Value string + type Provider struct + func NewProvider(store *Store, logger *slog.Logger) *Provider + func (p *Provider) AllFlags(ctx context.Context, evalCtx featureflag.EvaluationContext) ([]featureflag.FlagValue, error) + func (p *Provider) Evaluate(ctx context.Context, key string, evalCtx featureflag.EvaluationContext) (featureflag.FlagValue, error) + func (p *Provider) Name() string + func (p *Provider) NotifyChange(key string, value any, flagType featureflag.FlagType) + func (p *Provider) Subscribe(fn func(featureflag.FlagChangeEvent)) (cancel func()) + type RuleRow struct + Attribute string + FlagKey string + ID int64 + Operator string + Priority int + ServeValue string + Value string + type Store struct + func NewStore(dbPath string) (*Store, error) + func NewStoreFromDB(db *sql.DB) (*Store, error) + func (s *Store) AddRule(ctx context.Context, r *RuleRow) error + func (s *Store) Close() error + func (s *Store) DeleteFlag(ctx context.Context, key string) error + func (s *Store) DeleteOverride(ctx context.Context, id int64) error + func (s *Store) DeleteRule(ctx context.Context, id int64) error + func (s *Store) GetFlag(ctx context.Context, key string) (*FlagRow, error) + func (s *Store) GetOverrides(ctx context.Context, flagKey string) ([]OverrideRow, error) + func (s *Store) GetRules(ctx context.Context, flagKey string) ([]RuleRow, error) + func (s *Store) ListFlags(ctx context.Context) ([]FlagRow, error) + func (s *Store) UpsertFlag(ctx context.Context, f *FlagRow) error + func (s *Store) UpsertOverride(ctx context.Context, o *OverrideRow) error