Documentation ¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailHandler ¶
type EmailHandler struct {
// contains filtered or unexported fields
}
func (*EmailHandler) GetChannel ¶
func (h *EmailHandler) GetChannel() message_queue.Chanel
func (*EmailHandler) GetTopic ¶
func (h *EmailHandler) GetTopic() message_queue.Topic
func (*EmailHandler) OnMessage ¶
func (h *EmailHandler) OnMessage(message *nsq.Message) error
type Handler ¶
type Handler interface { GetTopic() message_queue.Topic GetChannel() message_queue.Chanel OnMessage(message *nsq.Message) error }
type NotifyHandler ¶
type NotifyHandler struct {
// contains filtered or unexported fields
}
func NewEmailHandler ¶
func NewEmailHandler(topic message_queue.Topic, chanel message_queue.Chanel) *NotifyHandler
func NewNotifyHandler ¶
func NewNotifyHandler(topic message_queue.Topic, chanel message_queue.Chanel) *NotifyHandler
func (*NotifyHandler) GetChannel ¶
func (h *NotifyHandler) GetChannel() message_queue.Chanel
func (*NotifyHandler) GetTopic ¶
func (h *NotifyHandler) GetTopic() message_queue.Topic
func (*NotifyHandler) OnMessage ¶
func (h *NotifyHandler) OnMessage(message *nsq.Message) error
Click to show internal directories.
Click to hide internal directories.