mail

package
v0.0.0-...-3a56714 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendCreateEventEmail

func SendCreateEventEmail(ctx context.Context, payload EmailCreateEventPayload) error

func SendDeletedEventEmail

func SendDeletedEventEmail(ctx context.Context, payload EmailDeletedEventPayload) error

func SendForgotPasswordEmail

func SendForgotPasswordEmail(ctx context.Context, payload EmailForgotPasswordPayload) error

func SendModifiedEventEmail

func SendModifiedEventEmail(ctx context.Context, payload EmailModifiedPayload) error

func SendRegistrationEmail

func SendRegistrationEmail(ctx context.Context, payload EmailRegisterPayload) error

func SendReminderEmail

func SendReminderEmail(ctx context.Context, payload EmailReminderPayload) error

Will send an email reminding members to register for an event If the member has dependents, the responsible will receive one email per dependent in addition to their own

func SendSummaryEmail

func SendSummaryEmail(ctx context.Context, payload EmailSummaryPayload) error

Types

type Button

type Button struct {
	Text  string
	Link  string
	Color string
}

type EmailCreateEventPayload

type EmailCreateEventPayload struct {
	Member model.Member `json:"member"`
	// EventBeforeUpdate model.Event  `json:"eventBeforeUpdate"`
	Event model.Event `json:"event"`
}

type EmailDeletedEventPayload

type EmailDeletedEventPayload struct {
	Member       model.Member `json:"member"`
	EventDeleted model.Event  `json:"eventDeleted"`
}

type EmailForgotPasswordPayload

type EmailForgotPasswordPayload struct {
	Member      model.Member      `json:"member"`
	Token       string            `json:"token"`
	Credentials model.Credentials `json:"credentials"`
}

type EmailModifiedPayload

type EmailModifiedPayload struct {
	Member            model.Member `json:"member"`
	EventBeforeUpdate model.Event  `json:"eventBeforeUpdate"`
	EventAfterUpdate  model.Event  `json:"eventAfterUpdate"`
}

type EmailRegisterPayload

type EmailRegisterPayload struct {
	Member model.Member `json:"member"`
	Author model.Member `json:"author"`
	Token  string       `json:"token"`
}

type EmailReminderPayload

type EmailReminderPayload struct {
	Member        model.Member
	Event         model.Event
	Participation model.Participation
	Token         string
	Dependents    []model.Member
}

type EmailSummaryPayload

type EmailSummaryPayload struct {
	Member       model.Member   `json:"member"`
	Event        model.Event    `json:"event"`
	Participants []model.Member `json:"participants"`
}

Jump to

Keyboard shortcuts

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