transmitter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTransmitFailed is an error that occurs when a message transmission fails.
	ErrTransmitFailed = errors.New("message transmit failed")
)

Functions

func NewTransmitRetryableError

func NewTransmitRetryableError(err error, retryAfter time.Duration) error

NewTransmitRetryableError initializes and returns a new TransmitRetryableError.

Types

type TransmitAttributes

type TransmitAttributes map[string]string

TransmitAttributes is a map of key-value pairs that may be sent with message transmission. These attributes may be sent or ignored depending on the Transmitter implementation.

type TransmitRetryableError

type TransmitRetryableError struct {
	Err        error
	RetryAfter time.Duration
}

TransmitRetryableError is an error that occurs when a transmission error is encountered that may be retried at a later time.

func (*TransmitRetryableError) Error

func (e *TransmitRetryableError) Error() string

Error implementation of the error interface for TransmitRetryableError.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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