retry

package
v0.90.6 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCDialOptions

func GRPCDialOptions(l *zerolog.Logger, enabled bool) []grpc.DialOption

GRPCDialOptions returns gRPC dial options that install unary and stream retry interceptors. When enabled is false, it returns nil.

Types

type RestDoer

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

RestDoer retries eligible bodyless GET and HEAD requests.

func NewRestDoer

func NewRestDoer(inner httpDoer, opts ...restDoerOption) (*RestDoer, error)

NewRestDoer wraps inner with REST read retry behavior.

func (*RestDoer) Do

func (d *RestDoer) Do(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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