Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditEvent ¶
type AuditEvent struct { EventID string `json:"event_id"` Timestamp time.Time `json:"timestamp"` Action string `json:"action"` KeyID string `json:"key_id"` Algorithm string `json:"algorithm"` Version int `json:"version"` Status string `json:"status"` UserID string `json:"user_id"` IPAddress string `json:"ip_address"` Metadata map[string]interface{} `json:"metadata"` TraceID string `json:"trace_id"` Success bool `json:"success"` ErrorDetail string `json:"error_detail,omitempty"` }
type AuditLogger ¶
type AuditLogger struct {
// contains filtered or unexported fields
}
func NewAuditLogger ¶
func NewAuditLogger( natsURL string, metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) (*AuditLogger, error)
func (*AuditLogger) Close ¶
func (l *AuditLogger) Close() error
func (*AuditLogger) LogKeyEvent ¶
func (l *AuditLogger) LogKeyEvent(ctx context.Context, event *AuditEvent) error
Click to show internal directories.
Click to hide internal directories.