Documentation ¶
Overview ¶
Package nsq is a wrapper of the original "github.com/nsqio/go-nsq" library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is NSQ pubsub client.
func NewWithConfig ¶
NewWithConfig to create new NSQ pubsub client with config.
func (*Client) Subscribe ¶
func (c *Client) Subscribe(ctx context.Context, topic string, handlerFunc pubsub.HandlerFunc) (err error)
Subscribe to subscriber topic.
func (*Client) Use ¶ added in v0.24.0
func (c *Client) Use(middlewares ...func(pubsub.HandlerFunc) pubsub.HandlerFunc)
Use to add pubsub middlewares.
Click to show internal directories.
Click to hide internal directories.