Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Mgr = New()
Mgr is the global audit log manager instance
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Count returns the total count of audit logs according to the query Count(ctx context.Context, query *q.Query) (total int64, err error) // List audit logs according to the query List(ctx context.Context, query *q.Query) (audits []*model.AuditLog, err error) // Get the audit log specified by ID Get(ctx context.Context, id int64) (audit *model.AuditLog, err error) // Create the audit log Create(ctx context.Context, audit *model.AuditLog) (id int64, err error) // Delete the audit log specified by ID Delete(ctx context.Context, id int64) (err error) }
Manager is used for audit log management
Click to show internal directories.
Click to hide internal directories.