audit

package
v0.0.0-...-481f9f6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 finds structs with hookie.Inject and calls their hooks

Types

This section is empty.

Jump to

Keyboard shortcuts

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