Documentation ¶
Index ¶
Constants ¶
View Source
const Key = "mq"
Key is the key name of the message queue in the Gin context.
Variables ¶
View Source
var (
MsgSendMail = "send_mail"
)
Functions ¶
Types ¶
type MQ ¶
type MQ interface {
Publish(M)
}
MQ wraps the functions that interactive with the message queue.
func FromContext ¶
FromContext returns the message queue associated with this context.
Click to show internal directories.
Click to hide internal directories.