Documentation
¶
Overview ¶
Package audit provides an audit log adapter for PostgreSQL.
Index ¶
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 реализует core.AuditLog для PostgreSQL.
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker читает аудит-события из канала и записывает их в хранилище.
func NewWorker ¶
func NewWorker(store core.AuditLog, bufferSize int, logger *slog.Logger, reg *prometheus.Registry, namespace string) (*Worker, chan<- core.AuditEntry)
NewWorker создаёт воркер с буферизированным каналом. Возвращает воркер и write-end канала для отправки аудит-событий.
Click to show internal directories.
Click to hide internal directories.