contracts

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Consume(concurrency int, exit chan struct{}, handler ErrorHandler) error
	Stop() error
	Dispatch(payload interface{}, delay ...time.Duration) error
}

type ErrorHandler added in v0.1.0

type ErrorHandler func(error)

type NamedPayload

type NamedPayload interface {
	PayloadName() string
}

type WithConnection

type WithConnection interface {
	QueueConnection() string
}

type Worker

type Worker interface {
	Run(done chan struct{}, handler ErrorHandler) error
	Close() error
}

Jump to

Keyboard shortcuts

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