amqp

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRocketClient

func GetRocketClient() mq_http_sdk.MQClient

GetRocketClient 获取sms客户端

Types

type Rabbit added in v1.5.7

type Rabbit struct {
	// contains filtered or unexported fields
}

func NewRabbit added in v1.5.7

func NewRabbit(addr, accessKey, secretKey, vhost string) *Rabbit

NewRabbit redis模式

func (*Rabbit) Close added in v1.5.7

func (m *Rabbit) Close()

Close 关闭连接

func (*Rabbit) PublishOnQueue added in v1.5.7

func (m *Rabbit) PublishOnQueue(exchangeName, exchangeType, queueName, key, tag string, body interface{}) error

PublishOnQueue 发布消息

func (*Rabbit) String added in v1.5.7

func (m *Rabbit) String() string

String 字符

func (*Rabbit) SubscribeToQueue added in v1.5.7

func (m *Rabbit) SubscribeToQueue(exchangeName, exchangeType, queueName, key, tag string, handlerFunc message.AmqpConsumerFunc) error

type Rocket

type Rocket struct {
	// contains filtered or unexported fields
}

func NewRocket

func NewRocket(client mq_http_sdk.MQClient, endpoint, accessKey, secretKey, instanceId, namespace string) *Rocket

NewRocket redis模式

func (*Rocket) Close

func (m *Rocket) Close()

Close 关闭连接

func (*Rocket) PublishOnQueue

func (m *Rocket) PublishOnQueue(exchangeName, exchangeType, queueName, key, tag string, body interface{}) error

PublishOnQueue 发布消息

func (*Rocket) String

func (m *Rocket) String() string

String 字符

func (*Rocket) SubscribeToQueue

func (m *Rocket) SubscribeToQueue(exchangeName, exchangeType, queueName, consumerName string, tag string, handlerFunc message.AmqpConsumerFunc) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL