Documentation
¶
Index ¶
- func NewProvider(url string, options ...nats.Option) (queue.MessageQueueProvider, error)
- type Provider
- func (p *Provider) Close() error
- func (p *Provider) MessageQueue(subject string) (queue.MessageQueue, error)
- func (p *Provider) PublishToTopic(ctx context.Context, topic string, payload string) error
- func (p *Provider) QueueSubscribe(ctx context.Context, subject string, handler func(queue.DeliverMessage)) (queue.Subscription, error)
- func (p *Provider) RequestReply(ctx context.Context, topic string, payload string) (*queue.Message, error)
- func (p *Provider) SubscribeToTopic(ctx context.Context, topic string, handler func(queue.DeliverMessage)) (queue.Subscription, error)
- type Setting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(url string, options ...nats.Option) (queue.MessageQueueProvider, error)
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewNatsProvider ¶
func (*Provider) MessageQueue ¶
func (p *Provider) MessageQueue(subject string) (queue.MessageQueue, error)
func (*Provider) PublishToTopic ¶
func (*Provider) QueueSubscribe ¶
func (p *Provider) QueueSubscribe(ctx context.Context, subject string, handler func(queue.DeliverMessage)) (queue.Subscription, error)
func (*Provider) RequestReply ¶
func (*Provider) SubscribeToTopic ¶
func (p *Provider) SubscribeToTopic(ctx context.Context, topic string, handler func(queue.DeliverMessage)) (queue.Subscription, error)
Click to show internal directories.
Click to hide internal directories.