safeapirequest

package
v0.0.0-...-88e50d4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(req Request) error

Do will perform the user supplied function up to the value of retries before giving up Explicit error messages are allowed to make testing more fault tolerant in unstable environments.

Types

type Request

type Request func() error

Request is a user provided function that performs an API request and returns an error Existing functions can be adapted to meet the signature requirement of the Requst func type.

Jump to

Keyboard shortcuts

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