Documentation ¶
Index ¶
- type NSQ
- func (e *NSQ) Consumer(ctx context.Context, name string, f queueLib.ConsumerFunc, ...)
- func (e *NSQ) Publish(ctx context.Context, message messageLib.IMessage, ...) error
- func (e *NSQ) RpcRequest(ctx context.Context, key string, data []byte, ...) ([]byte, error)
- func (e *NSQ) Run(ctx context.Context)
- func (e *NSQ) Shutdown(ctx context.Context)
- func (NSQ) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NSQ ¶
type NSQ struct {
// contains filtered or unexported fields
}
func (*NSQ) Consumer ¶
func (e *NSQ) Consumer(ctx context.Context, name string, f queueLib.ConsumerFunc, optionFuncs ...func(*queueLib.ConsumeOptions))
Consumer 监听消费者
func (*NSQ) Publish ¶
func (e *NSQ) Publish(ctx context.Context, message messageLib.IMessage, optionFuncs ...func(*queueLib.PublishOptions)) error
Publish 消息入生产者
func (*NSQ) RpcRequest ¶ added in v2.0.23
Click to show internal directories.
Click to hide internal directories.