Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + type AccessEvent struct + Action string + ClientIP string + FilePath string + RepoName string + Timestamp time.Time + UserID string + type AuditLogger interface + LogAccess func(ctx context.Context, event AccessEvent) + LogOperation func(ctx context.Context, event OperationEvent) + LogReplace func(ctx context.Context, event ReplaceEvent) + LogSearch func(ctx context.Context, event SearchEvent) + type NoOpAuditLogger struct + func (n *NoOpAuditLogger) LogAccess(_ context.Context, _ AccessEvent) + func (n *NoOpAuditLogger) LogOperation(_ context.Context, _ OperationEvent) + func (n *NoOpAuditLogger) LogReplace(_ context.Context, _ ReplaceEvent) + func (n *NoOpAuditLogger) LogSearch(_ context.Context, _ SearchEvent) + type OperationEvent struct + Action string + ClientIP string + Details map[string]any + ResourceID string + ResourceName string + ResourceType string + Timestamp time.Time + UserID string + type ReplaceEvent struct + ClientIP string + FilesCount int + Query string + ReposCount int + Timestamp time.Time + UserID string + type SearchEvent struct + ClientIP string + Duration time.Duration + Query string + Results int + Timestamp time.Time + UserID string