repository

package
v0.0.0-...-13e9ea1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailRepository

type MailRepository struct {
	*pgxpool.Pool
}

func NewMailRepository

func NewMailRepository() *MailRepository

func (*MailRepository) Delete

func (r *MailRepository) Delete(id int) error

func (*MailRepository) DeleteAllOfRecipient

func (r *MailRepository) DeleteAllOfRecipient(email string) error

func (*MailRepository) GetByRecipient

func (r *MailRepository) GetByRecipient(email string) ([]dto.Mail, error)

func (*MailRepository) Save

func (r *MailRepository) Save(mail dto.Mail) error

type MailSend

type MailSend struct {
	Dialer *gomail.Dialer
}

func NewMail

func NewMail() *MailSend

func (*MailSend) SendMail

func (m *MailSend) SendMail(mail entity.Mail) error

func (*MailSend) SendMailWithAttachment

func (m *MailSend) SendMailWithAttachment(mail entity.Mail) error

In the microservice where getting qr code for ticket, to send a request to upload service first to get a generated qr code there and then to call this method with mail?

Jump to

Keyboard shortcuts

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