mail

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mail implements the functions, types, and interfaces for the module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.2.6

func Init(cfg *mailv1.Mail, mailBuilder Builder)

Init initializes the mail mailer. This function should be called during the application's bootstrap phase. If mailBuilder is nil, the default mailer implementation will be used.

func Mailer added in v0.2.6

func Mailer() interfaces.Mailer

Mailer retrieves the mail mailer. It panics if the mail mailer has not been initialized.

func NewDefaultMailer added in v0.2.6

func NewDefaultMailer(cfg *mailv1.Mail) interfaces.Mailer

NewDefaultMailer creates a new instance of the default Mailer.

Types

type Builder

type Builder = func(cfg *mailv1.Mail) interfaces.Mailer

Builder is a function type that takes a Mail configuration and returns a Mailer. This allows external packages to provide their specific Mailer implementations.

Jump to

Keyboard shortcuts

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