Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2026 v1.0.0 Jul 6, 2026 Changes in this version + func ExportAnchors(ctx context.Context, pool *pgxpool.Pool) (int, error) + type Entry struct + Action string + ActorKind string + EntityID uuid.UUID + EntityType string + Field string + ImpersonatorID uuid.UUID + Metadata map[string]any + NewValue string + OldValue string + Reason string + type Filter struct + Action string + ActorID uuid.UUID + EntityID uuid.UUID + EntityType string + Limit int + type Log struct + Action string + ActorID *uuid.UUID + ActorKind string + EntityID *uuid.UUID + EntityType string + Field string + ID uuid.UUID + ImpersonatorID *uuid.UUID + NewValue string + OccurredAt time.Time + OldValue string + Reason string + RequestID string + TxID string + type Redactor func(*Entry) + type VerifyResult struct + BrokenSeq int64 + Count int64 + HeadSeq int64 + OK bool + Reason string + type Writer struct + func New(idgen model.IDGen, redact Redactor) *Writer + func (w *Writer) Anchor(ctx context.Context, db database.TenantDB) (seq int64, headHash string, err error) + func (w *Writer) CheckAnchor(ctx context.Context, db database.TenantDB, seq int64, headHash string) (present bool, err error) + func (w *Writer) Query(ctx context.Context, db database.TenantDB, f Filter) ([]Log, error) + func (w *Writer) Record(ctx context.Context, db database.TenantDB, e Entry) error + func (w *Writer) Verify(ctx context.Context, db database.TenantDB) (VerifyResult, error)