Documentation
¶
Index ¶
- Constants
- Variables
- func GetPusherProvider(pusherConfig PusherConfigSection, redisConfig redis.ConfigSection, ...) *ioc.Provider[*Pusher]
- func GetSenderProvider(senderConfig SenderConfigSection, redisConfig redis.ConfigSection, ...) *ioc.Provider[*Sender]
- func SendEmail(title, from, pass, host, port, to, subject, body string) error
- type Msg
- type Pusher
- type PusherConfig
- type PusherConfigSection
- type RedisQueueKey
- type Sender
- type SenderConfig
- type SenderConfigSection
Constants ¶
View Source
const ( DefaultSenderConfigSection SenderConfigSection = "email-sender" DefaultPusherConfigSection PusherConfigSection = "email-pusher" DefaultRedisQueueKey = "email-verify" )
Variables ¶
View Source
var MsgSerializer = encoding.JSONSerializer
Functions ¶
func GetPusherProvider ¶
func GetPusherProvider( pusherConfig PusherConfigSection, redisConfig redis.ConfigSection, redisKey RedisQueueKey, ) *ioc.Provider[*Pusher]
func GetSenderProvider ¶
func GetSenderProvider( senderConfig SenderConfigSection, redisConfig redis.ConfigSection, redisKey RedisQueueKey, ) *ioc.Provider[*Sender]
Types ¶
type PusherConfig ¶
type PusherConfigSection ¶
type PusherConfigSection string
type RedisQueueKey ¶
type RedisQueueKey string
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func (*Sender) UpdateConfig ¶
func (s *Sender) UpdateConfig(opts *SenderConfig) error
type SenderConfig ¶
type SenderConfigSection ¶
type SenderConfigSection string
Click to show internal directories.
Click to hide internal directories.