audit

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogModels = make(map[string]bool)

LogModels Registry for audit-log-enabled models

Functions

func RegisterModel

func RegisterModel(key string)

RegisterModel Register the model for audit logging

func WatchAndInjectHooks

func WatchAndInjectHooks(ctx context.Context) error

WatchAndInjectHooks finds structs with hookie.Inject and calls their hooks

func WatchAndRegister

func WatchAndRegister(ctx context.Context, dir string) error

WatchAndRegister scans the specified directory for structs with in.Inject and registers their hooks. It returns an error if any issues occur during processing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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