Documentation ¶
Index ¶
- type IUseCase
- type UseCase
- func (uc *UseCase) AddTracking(ctx context.Context, email db.Email, ip string) error
- func (uc *UseCase) CreateEmail(ctx context.Context, recipient, subject string) (db.Email, error)
- func (uc *UseCase) GetEmail(ctx context.Context, imageUUID uuid.UUID) (db.Email, error)
- func (uc *UseCase) GetEmailsWithPagination(ctx context.Context, limit int, offset int) ([]db.Email, error)
- func (uc *UseCase) GetTrackersWithPagination(ctx context.Context, limit int, offset int) ([]db.Tracker, error)
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 ¶
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) AddTracking ¶
func (*UseCase) CreateEmail ¶
func (*UseCase) GetEmailsWithPagination ¶
Click to show internal directories.
Click to hide internal directories.