Documentation
¶
Index ¶
- type MessageQueueClient
- func (mq *MessageQueueClient) Options() *redis.Options
- func (mq *MessageQueueClient) Publish(channel string, message any) error
- func (mq *MessageQueueClient) Subscribe(ctx context.Context, onMessage func(*redis.Message), channels ...string) (string, error)
- func (mq *MessageQueueClient) UnSubscribe(subscribeId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageQueueClient ¶
type MessageQueueClient struct {
// contains filtered or unexported fields
}
func NewMessageQueueClient ¶
func NewMessageQueueClient(client *redis.Client) *MessageQueueClient
func (*MessageQueueClient) Options ¶ added in v1.1.0
func (mq *MessageQueueClient) Options() *redis.Options
func (*MessageQueueClient) Publish ¶
func (mq *MessageQueueClient) Publish(channel string, message any) error
func (*MessageQueueClient) UnSubscribe ¶
func (mq *MessageQueueClient) UnSubscribe(subscribeId string)
Click to show internal directories.
Click to hide internal directories.