smiddleware

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntervalMiddleware

type IntervalMiddleware struct {
	Interval     time.Duration `usage:"interval between runs"`
	NumberOfRuns int           `usage:"number of runs (-1 for infinite)"`
}

func NewIntervalMiddleware

func NewIntervalMiddleware() *IntervalMiddleware

func NewIntervalMiddlewareWithDefault

func NewIntervalMiddlewareWithDefault(def time.Duration) *IntervalMiddleware

func (*IntervalMiddleware) Wrap

Jump to

Keyboard shortcuts

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