echo

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAssertConfig = AssertConfig{
	Skipper: mw.DefaultSkipper,
}

DefaultAssertConfig is the default Assert middleware config.

Functions

func Assert

func Assert(doc assert.Document) echo.MiddlewareFunc

Assert returns middleware that uses the openapi-assert package to assert echo HTTP requests.

func AssertWithConfig

func AssertWithConfig(cfg AssertConfig) echo.MiddlewareFunc

AssertWithConfig returns an Assert middleware with config.

Types

type AssertConfig

type AssertConfig struct {
	// Skipper defines a function to skip middleware.
	Skipper mw.Skipper

	// OpenAPI Document
	Document assert.Document
}

AssertConfig defines the config for Assert Assert.

Jump to

Keyboard shortcuts

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