email

package
v0.0.0-...-da2ec71 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package email provides a Starlark module that sends email using Resend API.

Index

Constants

View Source
const ModuleName = "email"

ModuleName defines the expected name for this module when used in Starlark's load() function, e.g., load('email', 'send')

Variables

This section is empty.

Functions

func SetLog

func SetLog(l *zap.SugaredLogger)

SetLog sets the logger from outside the package.

Types

type Module

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

Module wraps the ConfigurableModule with specific functionality for sending emails.

func NewModule

func NewModule() *Module

NewModule creates a new instance of Module.

func NewModuleWithConfig

func NewModuleWithConfig(resendAPIKey, senderDomain string) *Module

NewModuleWithConfig creates a new instance of Module with the given configuration values.

func NewModuleWithGetter

func NewModuleWithGetter(resendAPIKey, senderDomain base.ConfigGetter[string]) *Module

NewModuleWithGetter creates a new instance of Module with the given configuration getters.

func (*Module) LoadModule

func (m *Module) LoadModule() starlet.ModuleLoader

LoadModule returns the Starlark module loader with the email-specific functions.

Jump to

Keyboard shortcuts

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