Versions in this module Expand all Collapse all v0 v0.1.1 May 26, 2026 v0.1.0 May 25, 2026 Changes in this version + type Entry struct + Action string + Actor string + ID int64 + Meta map[string]any + OccurredAt time.Time + PrevSig string + Sig string + Subject string + TenantID int64 + type Logger struct + func New(signKey string, sink Sink) *Logger + func (l *Logger) Record(actor string, tenantID int64, action, subject string, meta map[string]any) (Entry, error) + func (l *Logger) Verify(tenantID int64) (int, error) + type MemorySink struct + func NewMemorySink() *MemorySink + func (s *MemorySink) Append(e Entry) (Entry, error) + func (s *MemorySink) List(tenantID int64) ([]Entry, error) + type Sink interface + Append func(entry Entry) (Entry, error) + List func(tenantID int64) ([]Entry, error)