Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditEvent ¶
type AuditEvent struct { ID string `json:"id"` Timestamp time.Time `json:"timestamp"` Actor Actor `json:"actor"` Action string `json:"action"` Resource Resource `json:"resource"` Status string `json:"status"` Changes []Change `json:"changes,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` Signatures []Signature `json:"signatures,omitempty"` }
type AuditLogger ¶
type AuditLogger struct {
// contains filtered or unexported fields
}
func NewAuditLogger ¶
func NewAuditLogger( metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, natsConn *nats.Conn, streamName string, retention time.Duration, ) (*AuditLogger, error)
func (*AuditLogger) LogEvent ¶
func (al *AuditLogger) LogEvent( ctx context.Context, event *AuditEvent, ) error
Click to show internal directories.
Click to hide internal directories.