mail

package
v0.0.0-...-5e7643e Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mail stands in for sending mails to Zeus WPI users

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(repo repository.Repository) (*Client, error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, mail model.Mail) error

Create handles a new mail being created It will change the check status and schedule the mail

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, mail model.Mail) error

Delete handles a mail being deleted It will change the check status and cancel the mail task

func (*Client) ScheduleMailAll

func (c *Client) ScheduleMailAll(ctx context.Context, mail model.Mail) error

func (*Client) Update

func (c *Client) Update(ctx context.Context, oldMail, newMail model.Mail) error

Update handles a mail being updated It will change the check status and reschedule the mail

Jump to

Keyboard shortcuts

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