middlewares

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogMiddleware

func LogMiddleware() stepper.MiddlewareHandler

func Retry

func Retry(options RetryOptions) stepper.MiddlewareHandler

Types

type Prometheus

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

func NewPrometheus

func NewPrometheus() *Prometheus

func (*Prometheus) GetMiddleware

func (p *Prometheus) GetMiddleware() stepper.MiddlewareHandler

func (*Prometheus) GetRegistry

func (p *Prometheus) GetRegistry() *prometheus.Registry

type RetryOptions

type RetryOptions struct {
	MaxRetries int
	Interval   time.Duration
}

Jump to

Keyboard shortcuts

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