Documentation ¶
Index ¶
- func EmailModuleFactory(mailer *mail.Mailer) app.BackendModuleFactory
- type Config
- type Module
- type Plugin
- func (p *Plugin) HookBackendModules(ctx context.Context, factories []app.BackendModuleFactory) ([]app.BackendModuleFactory, error)
- func (p *Plugin) HookConfig(ctx context.Context, data map[string]interface{}) error
- func (p *Plugin) HookDumpConfig(ctx context.Context) (map[string]interface{}, error)
- func (p *Plugin) PluginName() string
- func (p *Plugin) PluginVersion() string
- type SMTPConfig
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 Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) HookBackendModules ¶
func (p *Plugin) HookBackendModules(ctx context.Context, factories []app.BackendModuleFactory) ([]app.BackendModuleFactory, error)
func (*Plugin) HookConfig ¶
func (*Plugin) HookDumpConfig ¶
func (*Plugin) PluginName ¶
func (*Plugin) PluginVersion ¶
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"` }
Click to show internal directories.
Click to hide internal directories.