Documentation
¶
Overview ¶
Package postgres provides a PostgreSQL-backed granular config entry store.
Index ¶
- type Store
- func (s *Store) Changelog(ctx context.Context, limit int) ([]configstore.ChangelogEntry, error)
- func (s *Store) Delete(ctx context.Context, key, author string) error
- func (s *Store) Get(ctx context.Context, key string) (*configstore.Entry, error)
- func (s *Store) List(ctx context.Context) ([]configstore.Entry, error)
- func (*Store) Mode() string
- func (s *Store) Set(ctx context.Context, key, value, author string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store persists config entries in PostgreSQL with change auditing.
func (*Store) Changelog ¶ added in v1.48.0
func (s *Store) Changelog(ctx context.Context, limit int) ([]configstore.ChangelogEntry, error)
Changelog returns recent config changes, newest first.
func (*Store) Delete ¶ added in v1.48.0
Delete removes a config entry and logs the change atomically.
Click to show internal directories.
Click to hide internal directories.