deliverer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 6 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

This section is empty.

Types

type AppDeliverer

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

AppDeliverer handles the processing of a delivery.

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(delivery *resource.Delivery) (string, 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 resulting delivery. nolint:funlen // This method is straightforward and should be easy to read.

type Deliverer

type Deliverer interface {
	Deliver(*resource.Delivery) (string, error)
}

Directories

Path Synopsis
processor

Jump to

Keyboard shortcuts

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