Documentation ¶
Index ¶
Constants ¶
View Source
const ( // email交换机 EMAIL_EXCHANGE = "email_exchange" // email队列 EMAIL_QUEUE = "email_queue" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailHandler ¶
type EmailHandler struct {
// contains filtered or unexported fields
}
func NewEmailHandler ¶
func NewEmailHandler(url string) *EmailHandler
func (*EmailHandler) Publisher ¶
func (s *EmailHandler) Publisher() rabbitmq.MessagePublisher
func (*EmailHandler) ReceiveMessage ¶
func (s *EmailHandler) ReceiveMessage(handler func(message string)) error
func (*EmailHandler) SendMessage ¶
func (s *EmailHandler) SendMessage(message string) error
func (*EmailHandler) Subscriber ¶
func (s *EmailHandler) Subscriber() rabbitmq.MessageSubscriber
Click to show internal directories.
Click to hide internal directories.