Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶
type Flag struct {
Value json.RawMessage `json:"value"`
CreatedAt time.Time `json:"created_at"` //nolint:tagliatelle // JSON file.
ModifiedAt time.Time `json:"modified_at"` //nolint:tagliatelle // JSON file.
}
Flag represents one feature-flag record.
type Option ¶
func WithKeyType ¶
WithKeyType registers the group of the compile-time key type K.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewOverlayStore ¶
NewOverlayStore opens (or creates) the SQLite database at the given path. Parent directories are created if missing.
type TypedGroup ¶
TypedGroup provides type-safe access to a specific group in the store.
func NewTypedGroup ¶
func NewTypedGroup[K Key, ValT any]( ctx context.Context, store *Store, ) (*TypedGroup[K, ValT], error)
NewTypedGroup creates a typed group accessor - this is the correct way since Go doesn't allow type parameters on struct methods.
func (*TypedGroup[K, ValT]) DeleteKey ¶
func (g *TypedGroup[K, ValT]) DeleteKey(ctx context.Context, k K) error
DeleteKey removes an entry from the group.
Click to show internal directories.
Click to hide internal directories.