Documentation
¶
Overview ¶
Package auditpostgres provides a supported Postgres-backed audit recorder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidTable reports that a configured table name is not a safe SQL identifier. ErrInvalidTable = errors.New("invalid audit table") // ErrStoreNotConfigured reports that the store or pool was not configured. ErrStoreNotConfigured = errors.New("audit postgres store not configured") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
Pool ports.DatabasePool
// contains filtered or unexported fields
}
Store writes audit events to Postgres.
func New ¶
func New(pool ports.DatabasePool, opts Options) *Store
New creates a Postgres-backed audit recorder.
func (*Store) HealthChecker ¶
func (s *Store) HealthChecker() ports.HealthChecker
HealthChecker returns a Postgres audit dependency health checker.
Click to show internal directories.
Click to hide internal directories.