email

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailModuleFactory

func EmailModuleFactory(mailer *mail.Mailer) app.BackendModuleFactory

Types

type Config

type Config struct {
	SMTP SMTPConfig `mapstructure:"smtp" yaml:"smtp"`
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type Module

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

func (*Module) Export

func (m *Module) Export(export *goja.Object)

func (*Module) Name

func (m *Module) Name() string

type Plugin

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

func NewPlugin

func NewPlugin() *Plugin

func (*Plugin) HookBackendModules

func (p *Plugin) HookBackendModules(ctx context.Context, factories []app.BackendModuleFactory) ([]app.BackendModuleFactory, error)

func (*Plugin) HookConfig

func (p *Plugin) HookConfig(ctx context.Context, data map[string]interface{}) error

func (*Plugin) HookDumpConfig

func (p *Plugin) HookDumpConfig(ctx context.Context) (map[string]interface{}, error)

func (*Plugin) PluginName

func (p *Plugin) PluginName() string

func (*Plugin) PluginVersion

func (p *Plugin) PluginVersion() string

type SMTPConfig

type SMTPConfig struct {
	Host               string `mapstructure:"host"  yaml:"host"`
	Port               int    `mapstructure:"port"  yaml:"port"`
	User               string `mapstructure:"user"  yaml:"user"`
	Password           string `mapstructure:"password"  yaml:"password"`
	InsecureSkipVerify bool   `mapstructure:"insecureSkipVerify"  yaml:"insecureSkipVerify"`
	UseStartTLS        bool   `mapstructure:"useStartTLS"  yaml:"useStartTLS"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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