nsq

package
v1.51.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProducer

func NewProducer(lc fx.Lifecycle, params *ProducerParams) (producer.Producer, error)

NewProducer for NSQ. nolint:ireturn

func RegisterConsumer

func RegisterConsumer(lc fx.Lifecycle, params *ConsumerParams) error

RegisterConsumer for NSQ.

Types

type Config

type Config struct {
	LookupHost string `yaml:"lookup_host"`
	Host       string `yaml:"host"`
	UserAgent  string `yaml:"user_agent"`
}

type ConsumerParams

type ConsumerParams struct {
	Config  *Config
	Logger  *zap.Logger
	Topic   string
	Channel string
	Handler handler.Handler
}

ConsumerParams for NSQ.

type ProducerParams

type ProducerParams struct {
	Config *Config
	Logger *zap.Logger
}

ProducerParams for NSQ.

Directories

Path Synopsis
logger
zap
trace

Jump to

Keyboard shortcuts

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