retryable

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retryable

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

Retryable is a code generator for a method that can be retried on error

func NewRetryable

func NewRetryable(method *method.Method, structName string, structTypeArgs []jen.Code, receiverName string) *Retryable

NewRetryable is a constructor for Retryable, the given method must be an error-returning method

func (*Retryable) Statement

func (r *Retryable) Statement() (*jen.Statement, error)

Statement generates the jen.Statement for this retryable method

Jump to

Keyboard shortcuts

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