auditlogs_mysql

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Retrieve

func (s *MySQLStorageBackend) Retrieve(id uuid.UUID) (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 (s *MySQLStorageBackend) RetrieveTyped(logType string, amount, offset int) ([]auditlogs.LogEntry, error)

func (*MySQLStorageBackend) Setup

func (s *MySQLStorageBackend) Setup() error

func (*MySQLStorageBackend) Store

func (s *MySQLStorageBackend) Store(logEntry auditlogs.LogEntry) (uuid.UUID, error)

func (*MySQLStorageBackend) StoreMany

func (s *MySQLStorageBackend) StoreMany(logEntries []auditlogs.LogEntry) ([]uuid.UUID, error)

Jump to

Keyboard shortcuts

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