preflight

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(check echo.HandlerFunc) echo.MiddlewareFunc

func MiddlewareWithConfig

func MiddlewareWithConfig(cfg Config) echo.MiddlewareFunc

Types

type Config

type Config struct {
	// The preflight check to execute.
	Check echo.HandlerFunc
	// Preflight checks will never wait longer than this amount of time.
	MaxTotalWait time.Duration
	// Retries will never be further than this far apart.
	MaxRetryWait time.Duration
}

Jump to

Keyboard shortcuts

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