Documentation ¶
Index ¶
- type MailRequest
- type MailResponse
- type RabbitAMQPClient
- func (r *RabbitAMQPClient) SendMail(msg []byte, cb func(MailResponse)) (string, error)
- func (r *RabbitAMQPClient) SendSMS(msg []byte, cb func(SMSResponse)) (string, error)
- func (a *RabbitAMQPClient) Stop()
- func (a *RabbitAMQPClient) TrackEvent(e []byte, sender, name string) error
- func (a *RabbitAMQPClient) Write(p []byte) (int, error)
- type SMSRequest
- type SMSResponse
- type TrackEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailRequest ¶
type MailResponse ¶
type RabbitAMQPClient ¶
type RabbitAMQPClient struct { Conn *amqp.Connection Ch *amqp.Channel LogExName string // exchange name for logs TracExName string // exchange name for tracker MailReqQName string // routing key for sending mail MailResQName string SMSReqQName string // routing key for sending mail SMSResQName string }
func Get ¶
func Get() *RabbitAMQPClient
func (*RabbitAMQPClient) SendMail ¶
func (r *RabbitAMQPClient) SendMail(msg []byte, cb func(MailResponse)) (string, error)
func (*RabbitAMQPClient) SendSMS ¶ added in v1.1.7
func (r *RabbitAMQPClient) SendSMS(msg []byte, cb func(SMSResponse)) (string, error)
func (*RabbitAMQPClient) Stop ¶
func (a *RabbitAMQPClient) Stop()
func (*RabbitAMQPClient) TrackEvent ¶
func (a *RabbitAMQPClient) TrackEvent(e []byte, sender, name string) error
type SMSRequest ¶ added in v1.1.7
type SMSRequest struct { From string `json:"from"` To string `json:"to"` CountryCode string `json:"country_code"` Name string `json:"name"` Subject string `json:"subject"` DataMap map[string]any `json:"data_map"` TemplateName string `json:"template_name"` AckRequired bool `json:"ack_required"` Priority string `json:"priority"` }
type SMSResponse ¶ added in v1.1.7
Click to show internal directories.
Click to hide internal directories.