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)
Click to show internal directories.
Click to hide internal directories.