Documentation
¶
Overview ¶
Package postgres provides PostgreSQL storage for audit logs.
Index ¶
- type Config
- type Store
- func (s *Store) Cleanup(ctx context.Context) error
- func (s *Store) Close() error
- func (s *Store) Log(ctx context.Context, event audit.Event) error
- func (s *Store) Query(ctx context.Context, filter audit.QueryFilter) ([]audit.Event, error)
- func (s *Store) StartCleanupRoutine(ctx context.Context, interval time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RetentionDays int
}
Config configures the PostgreSQL audit store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements audit.Logger using PostgreSQL.
Click to show internal directories.
Click to hide internal directories.