Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorParamsEmpty liberr.CodeError = iota + libcfg.MinErrorComponentSmtp ErrorParamsInvalid ErrorComponentNotInitialized ErrorConfigInvalid ErrorStartComponent ErrorReloadComponent ErrorDependencyTLSDefault ErrorDependencyLogDefault )
View Source
const (
ComponentType = "smtp"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func IsCodeError ¶
func IsCodeError() bool
func RegisterNew ¶
func SetDefaultConfig ¶
func SetDefaultConfig(cfg []byte)
Types ¶
type ComponentSMTP ¶
type ComponentSMTP interface { libcfg.Component SetTLSKey(tlsKey string) GetSMTP() (libsmtp.SMTP, liberr.Error) SetStatusRouter(sts libsts.RouteStatus, prefix string) }
func Load ¶
func Load(getCpt libcfg.FuncComponentGet, key string) ComponentSMTP
func New ¶
func New(tlsKey string) ComponentSMTP
Click to show internal directories.
Click to hide internal directories.