repository

package
v0.0.0-...-19fc164 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMailNotFound = errors.New("mail not found")

Functions

This section is empty.

Types

type Repository

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

func New

func New(database db.Querier, encryptionKey string) *Repository

func (*Repository) GetMailByID

func (r *Repository) GetMailByID(id int) (models.DecryptedMailWithContent, error)

func (*Repository) GetMails

func (r *Repository) GetMails(offset int, limit int) ([]models.DecryptedMail, int, error)

func (*Repository) Store

func (r *Repository) Store(
	mailProvider string,
	subject string,
	content string,
	mail_from string,
	recipients []models.Recipient,
	error error,
)

Jump to

Keyboard shortcuts

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