audit

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit interface {
	AddAuditRecord(ctx context.Context, guildID int64, changes map[string]string) error
	RemoveAuditRecordsByGuildId(ctx context.Context, guildID int64) error
	RemoveRecordsBefore(ctx context.Context, before time.Time) error
	GetLastRecords(ctx context.Context, guild int64) ([]model.Audit, error)
	GetRecordsBefore(ctx context.Context, guild int64, before time.Time) ([]model.Audit, error)
}

type Entity

type Entity struct {
	// contains filtered or unexported fields
}

func New

func New(c *db.CQLCon) *Entity

func (*Entity) AddAuditRecord

func (e *Entity) AddAuditRecord(ctx context.Context, guildID int64, changes map[string]string) error

func (*Entity) GetLastRecords

func (e *Entity) GetLastRecords(ctx context.Context, guild int64) ([]model.Audit, error)

func (*Entity) GetRecordsBefore

func (e *Entity) GetRecordsBefore(ctx context.Context, guild int64, before time.Time) ([]model.Audit, error)

func (*Entity) RemoveAuditRecordsByGuildId

func (e *Entity) RemoveAuditRecordsByGuildId(ctx context.Context, guildID int64) error

func (*Entity) RemoveRecordsBefore

func (e *Entity) RemoveRecordsBefore(ctx context.Context, before time.Time) error

Jump to

Keyboard shortcuts

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