retry

package
v1.124.13 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Timeout  time.Duration `yaml:"timeout" json:"timeout" toml:"timeout"`
	Attempts uint          `yaml:"attempts" json:"attempts" toml:"attempts"`
}

Config for retry.

type Producer

type Producer struct {
	nsq.Producer
	// contains filtered or unexported fields
}

Producer for retry.

func NewProducer

func NewProducer(cfg *Config, p nsq.Producer) *Producer

NewProducer for retry.

func (*Producer) Produce added in v1.106.0

func (p *Producer) Produce(ctx context.Context, topic string, message *nsq.Message) error

Jump to

Keyboard shortcuts

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