v2

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAdminAuditLogAlreadyExists = errors.New("auditlog: admin auditlog already exists")
)
View Source
var (
	ErrAuditLogAlreadyExists = errors.New("auditlog: auditlog already exists")
)

Functions

This section is empty.

Types

type AdminAuditLogStorage

type AdminAuditLogStorage interface {
	CreateAdminAuditLogs(ctx context.Context, auditLogs []*domain.AuditLog) error
	ListAdminAuditLogs(
		ctx context.Context,
		whereParts []mysql.WherePart,
		orders []*mysql.Order,
		limit, offset int,
	) ([]*proto.AuditLog, int, int64, error)
}

func NewAdminAuditLogStorage

func NewAdminAuditLogStorage(qe mysql.QueryExecer) AdminAuditLogStorage

type AuditLogStorage

type AuditLogStorage interface {
	CreateAuditLogs(ctx context.Context, auditLogs []*domain.AuditLog) error
	ListAuditLogs(
		ctx context.Context,
		whereParts []mysql.WherePart,
		orders []*mysql.Order,
		limit, offset int,
	) ([]*proto.AuditLog, int, int64, error)
}

func NewAuditLogStorage

func NewAuditLogStorage(qe mysql.QueryExecer) AuditLogStorage

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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