nsq

package
v0.0.0-...-777230d Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

NSQ

TO BE DEVELOPED

NSQ

Documentation

Index

Constants

View Source
const DefaultTCPAddr = "localhost:4150"

Variables

This section is empty.

Functions

This section is empty.

Types

type PSMQ

type PSMQ struct {
	NewProducer func() (*nsq.Producer, error)

	NewConsumer func(name string) (*nsq.Consumer, error)

	ConnectConsumer func(consumer *nsq.Consumer) error
	// contains filtered or unexported fields
}

func New

func New() *PSMQ

func (*PSMQ) Close

func (t *PSMQ) Close()

func (*PSMQ) CreatePublishTopic

func (t *PSMQ) CreatePublishTopic(name string) chan<- []byte

func (*PSMQ) Done

func (t *PSMQ) Done() chan struct{}

func (*PSMQ) ErrChan

func (t *PSMQ) ErrChan() chan error

func (*PSMQ) Init

func (t *PSMQ) Init()

func (*PSMQ) SubscribeToTopic

func (t *PSMQ) SubscribeToTopic(name string) <-chan []byte

Jump to

Keyboard shortcuts

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