audit

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package audit records events to the existing AuditLog Ent schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

Recorder writes audit log entries to the database.

func NewRecorder

func NewRecorder(client *ent.Client) *Recorder

NewRecorder creates a new audit Recorder.

func (*Recorder) Subscribe

func (r *Recorder) Subscribe(bus *eventbus.Bus)

Subscribe registers the recorder on the event bus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL