consumer

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 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"`
	GroupName    string   `yaml:"group_name"`
	ConsumeModel int      `yaml:"consume_model"`
}

func FromEnv

func FromEnv() Conf

type Consumer

type Consumer interface {
	Shutdown() error
	Subscribe(topic string, callback func(ctx context.Context, msgs ...*mq.MessageExt) (int, error)) error
}

Directories

Path Synopsis
impl

Jump to

Keyboard shortcuts

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