mail

package
v1.8.10 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamsEmpty liberr.CodeError = iota + libcfg.MinErrorComponentMail
	ErrorParamsInvalid
	ErrorComponentNotInitialized
	ErrorConfigInvalid
	ErrorStartComponent
	ErrorReloadComponent
	ErrorDependencyTLSDefault
	ErrorDependencyLogDefault
)
View Source
const (
	ComponentType = "smtp"
)

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig(indent string) []byte

func IsCodeError

func IsCodeError() bool

func Register

func Register(cfg libcfg.Config, key string, cpt ComponentMail)

func RegisterNew

func RegisterNew(cfg libcfg.Config, key string)

func SetDefaultConfig

func SetDefaultConfig(cfg []byte)

Types

type ComponentMail

type ComponentMail interface {
	libcfg.Component

	GetMail() (libmail.Mail, liberr.Error)
}

func Load

func Load(getCpt libcfg.FuncComponentGet, key string) ComponentMail

func New

func New() ComponentMail

Jump to

Keyboard shortcuts

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