deliverer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDisabledDeliveryKind defines an error caused by a disabled delivery kind.
	ErrDisabledDeliveryKind = errors.New("disabled delivery kind")

	// ErrDisabledMessageKind defines an error caused by a disabled message kind.
	ErrDisabledMessageKind = errors.New("disabled message kind")
)

Functions

func DeliveryHandler added in v0.0.3

func DeliveryHandler(deliverer Deliverer) func([]byte) error

DeliveryHandler defines a handler for incoming delivery requests.

Types

type AppDeliverer

type AppDeliverer struct {
	// contains filtered or unexported fields
}

func New

New creates a Deliverer that can perform the delivery of a message by calling a Requester service.

func (*AppDeliverer) Deliver

func (deliverer *AppDeliverer) Deliver(deliveryID uuid.UUID) error

Deliver delivers the delivery with the specified delivery ID. In order to do so, it calls the Requester service configured for the delivery. It returns the requester's input and output. nolint:funlen // This method is straightforward and should be easy to read.

type Deliverer

type Deliverer interface {
	Deliver(deliveryID uuid.UUID) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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