services

package
v0.40.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package services provides common functionality to be reused by service implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRetryable

func IsRetryable(err error) bool

IsRetryable indicates whether the error is caused by an operation that timed out due to a temporary unavailability and may be retried with a backoff potentially. IsRetryable returns false if the error is nil or if the error is caused by an operation that cannot be retried due to failed preconditions, invalid arguments, or on any other grounds.

func NewRetryableError

func NewRetryableError(err error) error

NewRetryableError creates and returns a new error from the given error indicating that it is retryable. Returns nil if the given error is nil.

Use the function IsRetryable(error) to check whether a given error is retryable or not.

func RetryableErrorf

func RetryableErrorf(format string, a ...any) error

RetryableErrorf returns a retryable error that formats according to the given format specifier.

Use the function IsRetryable(error) to check whether a given error is retryable or not.

Types

This section is empty.

Directories

Path Synopsis
com
Package com provides a factory function that creates a specific communication binding from a given communication protocol.
Package com provides a factory function that creates a specific communication binding from a given communication protocol.
api
Package api provides the communication API for data-centric message-driven communication among decoupled DDAs.
Package api provides the communication API for data-centric message-driven communication among decoupled DDAs.
mqtt5
Package mqtt5 provides a communication protocol binding implementation for MQTT v5 transport protocol.
Package mqtt5 provides a communication protocol binding implementation for MQTT v5 transport protocol.

Jump to

Keyboard shortcuts

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