Versions in this module Expand all Collapse all v0 v0.1.0 Jun 17, 2026 Changes in this version + var ErrClosed = errors.New("audit writer closed") + var ErrUnrecordable = errors.New("audit record unrecordable; sink wedged") + type Config struct + Buffer int + FlushMaxInterval time.Duration + FlushMaxRecords int + FsyncInterval time.Duration + HighWaterMark float64 + Overflow OverflowPolicy + SecurityBlockTimeout time.Duration + type OverflowPolicy string + const OverflowBlock + const OverflowShed + type Stats struct + Shed int64 + SinkErrors int64 + Unrecordable int64 + Written int64 + type SyncWriter interface + Sync func() error + func NopSync(w io.Writer) SyncWriter + type Writer struct + func New(sink SyncWriter, cfg Config) *Writer + func (w *Writer) Close() error + func (w *Writer) Get() *domain.AuditRecord + func (w *Writer) Record(rec *domain.AuditRecord) error + func (w *Writer) Stats() Stats