nsq

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProducer

func NewProducer(params ProducerParams) producer.Producer

NewProducer for NSQ.

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
	Marshaller marshaller.Marshaller
}

ConsumerParams for NSQ.

type ProducerParams

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

ProducerParams for NSQ.

Directories

Path Synopsis
zap
trace

Jump to

Keyboard shortcuts

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