email

package
v0.0.0-...-4044be6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUseCase

type IUseCase interface {
	GetEmail(ctx context.Context, imageUUID uuid.UUID) (db.Email, error)
	AddTracking(ctx context.Context, email db.Email, ip string) error
	CreateEmail(ctx context.Context, recipient, subject string) (db.Email, error)
	GetEmailsWithPagination(ctx context.Context, limit int, offset int) ([]db.Email, error)
	GetTrackersWithPagination(ctx context.Context, limit int, offset int) ([]db.Tracker, error)
}

func NewUseCase

func NewUseCase(dbConn *pgxpool.Pool) IUseCase

type UseCase

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

func (*UseCase) AddTracking

func (uc *UseCase) AddTracking(ctx context.Context, email db.Email, ip string) error

func (*UseCase) CreateEmail

func (uc *UseCase) CreateEmail(ctx context.Context, recipient, subject string) (db.Email, error)

func (*UseCase) GetEmail

func (uc *UseCase) GetEmail(ctx context.Context, imageUUID uuid.UUID) (db.Email, error)

func (*UseCase) GetEmailsWithPagination

func (uc *UseCase) GetEmailsWithPagination(ctx context.Context, limit int, offset int) ([]db.Email, error)

func (*UseCase) GetTrackersWithPagination

func (uc *UseCase) GetTrackersWithPagination(ctx context.Context, limit int, offset int) ([]db.Tracker, error)

Jump to

Keyboard shortcuts

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