producer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Type       string   `yaml:"type"`
	Addrs      []string `yaml:"addrs"`
	RetryTimes int      `yaml:"retry_times"`
	GroupName  string   `yaml:"group_name"`
}

func FromEnv

func FromEnv() Conf

type Producer

type Producer interface {
	SendSync(ctx context.Context, msg ...*mq.Message) (*mq.SendResult, error)
	SendAsync(ctx context.Context, callback func(ctx context.Context, result *mq.SendResult, err error), msgs ...*mq.Message) error
}

Directories

Path Synopsis
impl

Jump to

Keyboard shortcuts

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