queue

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeOption

type ConsumeOption struct{}

type ConsumeOptionFunc

type ConsumeOptionFunc func(o *ConsumeOption)

type Consumer

type Consumer func(context.Context, interface{}) (retry bool, err error)

type ProduceOption

type ProduceOption struct{}

type ProduceOptionFunc

type ProduceOptionFunc func(o *ProduceOption)

type Queue

type Queue interface {
	Produce(ctx context.Context, msg interface{}, opts ...ProduceOptionFunc) error
	Consume(consumer Consumer)
	Shutdown() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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