nsqs

package
v0.0.0-...-6797358 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 2 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 {
	// contains filtered or unexported fields
}

func NewNsq

func NewNsq(addr string, config *nsq.Config) *Nsq

func (*Nsq) GetProducer

func (s *Nsq) GetProducer() *nsq.Producer

func (*Nsq) Send

func (s *Nsq) Send(topic string, message interface{}) error

func (*Nsq) SetJsoniter

func (s *Nsq) SetJsoniter(json jsoniter.API)

func (*Nsq) Stop

func (s *Nsq) Stop()

Jump to

Keyboard shortcuts

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