consumer

package
v0.0.0-...-de203b7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package consumer 消费者包,提供快捷的消费方法

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer func(delivery amqp.Delivery) error

Consumer 消费者

type Looper

type Looper interface {
	// Loop 在context上下文内,循环处理消费者
	Loop(ctx context.Context, consumer Consumer) error
}

Looper 循环接口

func LoopCustomer

func LoopCustomer(pool goamqp.Pool, queue string, arguments ...declare.Argument) Looper

LoopCustomer 创建一个循环处理的消费者

Jump to

Keyboard shortcuts

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