audit

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("audit",
	fx.Provide(
		New,
	),
	fx.Decorate(
		wrapLogger,
	),
)

Functions

This section is empty.

Types

type AuditStorer

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

func (*AuditStorer) Cleanup added in v0.8.1

func (a *AuditStorer) Cleanup(before time.Time) error

func (*AuditStorer) Log

func (a *AuditStorer) Log(in *model.FivenetAuditLog, data any)

type IAuditer

type IAuditer interface {
	Log(in *model.FivenetAuditLog, data any)
}

func New

func New(p Params) IAuditer

type Noop

type Noop struct {
}

func (*Noop) Log

func (a *Noop) Log(in *model.FivenetAuditLog, data any)

type Params

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger *zap.Logger
	TP     *tracesdk.TracerProvider
	DB     *sql.DB
	Config *config.Config
}

Jump to

Keyboard shortcuts

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