auditmanager

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditManager

type AuditManager struct {
	// contains filtered or unexported fields
}

AuditManager manages audit logging based on configuration. It provides a centralized way to handle operation logging across all Factory functions, replacing the previous direct enqueuing of OperationLog records. The manager supports configurable filtering, field exclusion, and data truncation.

func New

New creates a new audit manager instance. This replaces the previous direct usage of circular buffer for operation logging.

func (*AuditManager) Consume

func (am *AuditManager) Consume()

Consume operation log.

func (*AuditManager) RecordBatchOperations

func (am *AuditManager) RecordBatchOperations(ctx *types.DatabaseContext, operationLogs []*modellog.OperationLog) error

RecordBatchOperations records multiple operations audit logs

func (*AuditManager) RecordOperation

func (am *AuditManager) RecordOperation(ctx *types.DatabaseContext, operationLog *modellog.OperationLog) error

RecordOperation records a single operation audit log. This method is now used by all Factory functions instead of directly enqueuing OperationLog records. It provides centralized audit logging with configurable filtering and supports both sync and async writing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL