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 ¶
Functions ¶
func CreateConsumer ¶
创建消费者
func RunMessageQueueConsumer ¶
func RunMessageQueueConsumer() ([]*nsq.Consumer, error)
Types ¶
type SendActivationEmailBody ¶
type SendNotifyBody ¶ added in v0.4.1
type SendNotifyBody struct { Event notify.SendNotifyEvent `json:"event" valid:"required~请输入事件"` // 事件名称 Payload interface{} `json:"payload" valid:"required~请输入数据体"` // 数据体 }
func (*SendNotifyBody) ToByte ¶ added in v0.4.1
func (c *SendNotifyBody) ToByte() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.