Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentSmtp ErrorParamInvalid ErrorComponentNotInitialized ErrorConfigInvalid ErrorComponentStart ErrorComponentReload )
View Source
const (
ComponentType = "smtp"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func RegisterNew ¶
func RegisterNew(ctx libctx.FuncContext, cfg libcfg.Config, key, tlsKey string)
func SetDefaultConfig ¶
func SetDefaultConfig(cfg []byte)
Types ¶
type ComponentSMTP ¶
type ComponentSMTP interface { cfgtps.Component SetTLSKey(tlsKey string) GetSMTP() (lbsmtp.SMTP, liberr.Error) }
func Load ¶
func Load(getCpt cfgtps.FuncCptGet, key string) ComponentSMTP
func New ¶
func New(ctx libctx.FuncContext, tlsKey string) ComponentSMTP
Click to show internal directories.
Click to hide internal directories.