Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // Create the audit log Create(ctx context.Context, access *model.AuditLog) (id int64, err error) // 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) (access []*model.AuditLog, err error) // Get the audit log specified by ID Get(ctx context.Context, id int64) (access *model.AuditLog, err error) // Delete the audit log specified by ID Delete(ctx context.Context, id int64) (err error) // Purge the audit log Purge(ctx context.Context, retentionHour int, includeOperations []string, dryRun bool) (int64, error) // UpdateUsername replaces username in matched records UpdateUsername(ctx context.Context, username string, usernameReplace string) error }
DAO is the data access object for audit log
Click to show internal directories.
Click to hide internal directories.