producer

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 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