package
0.1.0
Repository: https://github.com/src-d/framework.git
Documentation: pkg.go.dev

# Functions

NewAMQPBroker creates a new AMQPBroker.
NewBroker creates a new Broker based on the given URI.
NewJob creates a new Job with default values, a new unique ID and current timestamp.
Creates a new Broker for an in-memory queue.

# Constants

PriorityLow represents a low priority level.
PriorityNormal represents a normal priority level.
PriorityUrgent represents an urgent priority level.

# Variables

ErrAlreadyClosed is the error returned when trying to close an already closed connection.
No description provided by the author
No description provided by the author
ErrEmptyJob is the error returned when an empty job is published.
No description provided by the author
No description provided by the author
No description provided by the author
ErrTxNotSupported is the error returned when the transaction receives a callback does not know how to handle.
ErrUnsupportedProtocol is the error returned when a Broker does not know how to connect to a given URL.

# Structs

AMQPAcknowledger implements the Acknowledger for AMQP.
AMQPBroker implements the Broker interface for AMQP.
AMQPJobIter implements the JobIter interface for AMQP.
AMQPQueue implements the Queue interface for the AMQP.
Job contains the information for a job to be published to a queue.

# Interfaces

Acknowledger represents the object in charge of acknowledgement management for a job.
Broker represents a message broker.
JobIter represents an iterator over a set of Jobs.
Queue represents a message queue.

# Type aliases

Priority represents a priority level.
RepublishConditionFunc is a function used to filter jobs to republish.
TxCallback is a function to be called in a transaction.