senders

package
v0.0.0-...-25bc77e Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQSSender

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

SQSSender pushes envelopes to an SQS queue (works with LocalStack).

func NewSQS

func NewSQS(ctx context.Context, endpointURL, queueURL string) (*SQSSender, error)

NewSQS creates an SQS client targeting the given endpoint and queue.

func (*SQSSender) Send

func (s *SQSSender) Send(ctx context.Context, msg txoutbox.Envelope) error

Send implements txoutbox.Sender by posting the raw JSON payload to SQS.

type WebhookSender

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

WebhookSender posts envelopes to an HTTP endpoint.

func NewWebhook

func NewWebhook(target string) *WebhookSender

func (*WebhookSender) Send

func (s *WebhookSender) Send(ctx context.Context, msg txoutbox.Envelope) error

Jump to

Keyboard shortcuts

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