Documentation ¶
Index ¶
- func NewMySQLStorageBackend(db *sql.DB) auditlogs.StorageBackend
- type MySQLStorageBackend
- func (s *MySQLStorageBackend) Count() (int, error)
- func (s *MySQLStorageBackend) CountFilter(filters []auditlogs.AuditLogFilter) (int, error)
- func (s *MySQLStorageBackend) EntryFilter(filters []auditlogs.AuditLogFilter, amount, offset int) ([]auditlogs.LogEntry, error)
- func (s *MySQLStorageBackend) Retrieve(id uuid.UUID) (auditlogs.LogEntry, error)
- func (s *MySQLStorageBackend) RetrieveForObject(objectID interface{}, amount, offset int) ([]auditlogs.LogEntry, error)
- func (s *MySQLStorageBackend) RetrieveForUser(userID interface{}, amount, offset int) ([]auditlogs.LogEntry, error)
- func (s *MySQLStorageBackend) RetrieveMany(amount, offset int) ([]auditlogs.LogEntry, error)
- func (s *MySQLStorageBackend) RetrieveTyped(logType string, amount, offset int) ([]auditlogs.LogEntry, error)
- func (s *MySQLStorageBackend) Setup() error
- func (s *MySQLStorageBackend) Store(logEntry auditlogs.LogEntry) (uuid.UUID, error)
- func (s *MySQLStorageBackend) StoreMany(logEntries []auditlogs.LogEntry) ([]uuid.UUID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMySQLStorageBackend ¶
func NewMySQLStorageBackend(db *sql.DB) auditlogs.StorageBackend
Types ¶
type MySQLStorageBackend ¶
type MySQLStorageBackend struct {
// contains filtered or unexported fields
}
func (*MySQLStorageBackend) Count ¶
func (s *MySQLStorageBackend) Count() (int, error)
func (*MySQLStorageBackend) CountFilter ¶
func (s *MySQLStorageBackend) CountFilter(filters []auditlogs.AuditLogFilter) (int, error)
func (*MySQLStorageBackend) EntryFilter ¶
func (s *MySQLStorageBackend) EntryFilter(filters []auditlogs.AuditLogFilter, amount, offset int) ([]auditlogs.LogEntry, error)
func (*MySQLStorageBackend) RetrieveForObject ¶
func (s *MySQLStorageBackend) RetrieveForObject(objectID interface{}, amount, offset int) ([]auditlogs.LogEntry, error)
func (*MySQLStorageBackend) RetrieveForUser ¶
func (s *MySQLStorageBackend) RetrieveForUser(userID interface{}, amount, offset int) ([]auditlogs.LogEntry, error)
func (*MySQLStorageBackend) RetrieveMany ¶
func (s *MySQLStorageBackend) RetrieveMany(amount, offset int) ([]auditlogs.LogEntry, error)
func (*MySQLStorageBackend) RetrieveTyped ¶
func (*MySQLStorageBackend) Setup ¶
func (s *MySQLStorageBackend) Setup() error
Click to show internal directories.
Click to hide internal directories.