nsq

package
v1.56.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProducer

func NewProducer(params ProducerParams) (producer.Producer, error)

NewProducer for NSQ. nolint:ireturn

func RegisterConsumer

func RegisterConsumer(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 {
	Lifecycle  fx.Lifecycle
	Config     *Config
	Logger     *zap.Logger
	Topic      string
	Channel    string
	Tracer     opentracing.Tracer
	Handler    handler.Handler
	Compressor compressor.Compressor
	Marshaller marshaller.Marshaller
}

ConsumerParams for NSQ.

type ProducerParams

type ProducerParams struct {
	Lifecycle  fx.Lifecycle
	Config     *Config
	Logger     *zap.Logger
	Tracer     opentracing.Tracer
	Compressor compressor.Compressor
	Marshaller marshaller.Marshaller
}

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