nsq

package
v0.0.0-...-0e6b51b Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSQConsumer

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

func NewNSQConsumer

func NewNSQConsumer(addr string, topic string, channel string) (*NSQConsumer, error)

func (*NSQConsumer) Close

func (C *NSQConsumer) Close()

func (*NSQConsumer) Open

func (C *NSQConsumer) Open(cb mq.Listener, concurrency int) error

type NSQConsumerHandler

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

func (*NSQConsumerHandler) HandleMessage

func (Q *NSQConsumerHandler) HandleMessage(message *Q.Message) error

type NSQProducer

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

func NewNSQProducer

func NewNSQProducer(addr string, topic string) (*NSQProducer, error)

func (*NSQProducer) Close

func (Q *NSQProducer) Close()

func (*NSQProducer) Send

func (Q *NSQProducer) Send(name string, data interface{}) error

Jump to

Keyboard shortcuts

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