audit

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditStorer

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

func New

func New(logger *zap.Logger, tp *tracesdk.TracerProvider, db *sql.DB) *AuditStorer

func (*AuditStorer) AddEntry

func (a *AuditStorer) AddEntry(in *model.FivenetAuditLog)

func (*AuditStorer) AddEntryWithData

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

func (*AuditStorer) Log

func (a *AuditStorer) Log(service string, method string, state rector.EVENT_TYPE, targetUserId int32, data any)

func (*AuditStorer) Start

func (a *AuditStorer) Start()

func (*AuditStorer) Stop

func (a *AuditStorer) Stop()

type IAuditer

type IAuditer interface {
	Log(service string, method string, state rector.EVENT_TYPE, targetUserId int32, data any)
	AddEntry(in *model.FivenetAuditLog)
	AddEntryWithData(in *model.FivenetAuditLog, data any)
}

type Noop

type Noop struct {
}

func (*Noop) AddEntry

func (a *Noop) AddEntry(in *model.FivenetAuditLog)

func (*Noop) AddEntryWithData

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

func (*Noop) Log

func (a *Noop) Log(service string, method string, state rector.EVENT_TYPE, targetUserId int32, data any)

Jump to

Keyboard shortcuts

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