retry

package
v1.86.21 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Unlicense Imports: 5 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 {
	producer.Producer
	// contains filtered or unexported fields
}

Producer for retry.

func NewProducer

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

NewProducer for retry.

func (*Producer) Publish

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

Jump to

Keyboard shortcuts

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