Versions in this module Expand all Collapse all v0 v0.2.0 Oct 3, 2026 v0.1.0 Oct 1, 2026 Changes in this version + func MarshalJSONFunc() func(any) ([]byte, error) + func OpenFileFunc() func(string) (io.WriteCloser, error) + func SetMarshalJSONFunc(fn func(any) ([]byte, error)) + func SetOpenFileFunc(fn func(string) (io.WriteCloser, error)) + type Exporter interface + Close func(ctx context.Context) error + Open func(ctx context.Context) error + Write func(ctx context.Context, entry client.AuditEntry) error + type Fetcher func(ctx context.Context, limit int, offset int) ([]client.AuditEntry, int, error) + type FileExporter struct + Path string + func NewFileExporter(path string) *FileExporter + func (e *FileExporter) Close(_ context.Context) error + func (e *FileExporter) Open(_ context.Context) error + func (e *FileExporter) Write(_ context.Context, entry client.AuditEntry) error + type ProgressFunc func(exported int, total int) + type Result struct + ExportedEntries int + TotalEntries int + func Run(ctx context.Context, logger *slog.Logger, fetcher Fetcher, exporter Exporter, ...) (*Result, error)