Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// 生成params的sign字段
GenerateSign(str string) string
// 添加队列
AddQueue(name string, handler QueueHandler, waitSecond int)
// 获取队列
GetQueue(name string) Queue
// 监听队列
ListenQueues()
PublishMessage(topicName string, params Params, filterTag string) (*ali_mns.MessageSendResponse, error)
}
Client mns客户端接口
type Params ¶
type Params struct {
Content interface{} `json:"content"`
Tag string `json:"tag"`
TraceId string `json:"trace_id"`
ReferServiceName string `json:"refer_service_name"`
Sign string `json:"sign"`
}
Params 参数
type Queue ¶
Queue 队列
func (*Queue) DeleteMessage ¶
DeleteMessage 删除消息
func (*Queue) SendMessage ¶
func (q *Queue) SendMessage(message string) (ali_mns.MessageSendResponse, error)
SendMessage 发送消息
Click to show internal directories.
Click to hide internal directories.