audit

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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,
	),
)
View Source
var RetentionModule = fx.Module("audit_retention",
	fx.Provide(
		NewRetention,
	),
)

Functions

This section is empty.

Types

type AuditStorer

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

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
}

type Retention added in v0.8.11

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

func NewRetention added in v0.8.11

func NewRetention(p RetentionParams) *Retention

func (*Retention) Cleanup added in v0.8.11

func (r *Retention) Cleanup(before time.Time) error

type RetentionParams added in v0.8.11

type RetentionParams struct {
	fx.In

	LC fx.Lifecycle

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

Jump to

Keyboard shortcuts

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