nsq

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nsq

type Nsq struct {
	NsqClient nsq.Client
}

Nsq is a type of connector

func New

func New(nodeList []string) (*Nsq, error)

New creates a new Nsq connector

func (*Nsq) SendDelayMsg

func (s *Nsq) SendDelayMsg(ctx context.Context, topic string, orderingKey string, data []byte, delay time.Duration) error

SendDelayMsg is the stores that send delay events

func (*Nsq) SendMsg

func (s *Nsq) SendMsg(ctx context.Context, topic string, orderingKey string, data []byte) error

SendMsg is the stores that send real-time events

func (*Nsq) Stop

func (s *Nsq) Stop() error

Stop stops the nsq connector gracefully.

Jump to

Keyboard shortcuts

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