Versions in this module Expand all Collapse all v0 v0.1.35 Aug 9, 2026 v0.1.34 Aug 3, 2026 Changes in this version + func DefaultPath() string + func ResolveUser() string + type FileWriter struct + func NewFileWriter(path string) (*FileWriter, error) + func (w *FileWriter) Close() error + func (w *FileWriter) Write(rec Record) error + type Level string + const LevelAll + const LevelAlterOnly + type Record struct + Cluster string + Error string + Operation string + Params map[string]any + Resources []Resource + Result Result + Timestamp string + User string + type Resource struct + Actions []string + Alter bool + ID string + Type string + type Result string + const ResultAccessDenied + const ResultExecutionError + const ResultSuccess + const ResultUnknownError + const ResultValidationError + func Classify(err error) Result + type Service struct + func NewService(enabled bool, level Level, w Writer, log *slog.Logger) *Service + func (s *Service) Enabled() bool + func (s *Service) Record(rec Record) + type Writer interface + Write func(Record) error