smtp

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Footer    string   `yaml:"footer"`
	Server    string   `yaml:"server"`
	Port      string   `yaml:"port"`
	Username  string   `yaml:"username"`
	Password  string   `yaml:"password"`
	Subject   string   `yaml:"subject"`
	From      string   `yaml:"from"`
	Template  string   `yaml:"customTemplate"`
	To        []string `yaml:"to"`
	IsEnabled bool     `yaml:"enabled"`
}

Provider is an implementation of the `go-aws-news/providers` Provider interface.

func (*Provider) Enabled

func (p *Provider) Enabled() bool

Enabled returns true if the provider is enabled in the config.

func (*Provider) GetName

func (*Provider) GetName() string

GetName returns the Provider's name.

func (*Provider) Notify

func (p *Provider) Notify(news news.Announcements)

Notify is the function executed to POST to a provider's webhook url.

Jump to

Keyboard shortcuts

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