requester

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPRequestFn

func HTTPRequestFn(deliveryKind *resource.DeliveryKind) requestFn

HTTPRequestFn performs an HTTP request to the requester service at the configured host.

func LogRequestFn

func LogRequestFn(deliveryKind *resource.DeliveryKind) requestFn

LogRequestFn logs the input and output values. It is typically used during development when the actual message delivery is not important.

func NoopRequestFn

func NoopRequestFn(_ *resource.DeliveryKind) requestFn

NoopRequestFn does nothing. It is typically used when a message should not be delivered, eg. when testing or debugging.

Types

type Requester

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

Requester defines a request to deliver a message.

func New

func New(deliveryKind *resource.DeliveryKind) *Requester

New creates a new requester for the specified delivery kind.

func (*Requester) Request

func (r *Requester) Request(
	input map[string]interface{},
) (*requester.Values, error)

Request performs a request to the instance's relevant requester to deliver a message.

Jump to

Keyboard shortcuts

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