middleware

package
v0.32.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareFunc

type MiddlewareFunc func(r *RouteInfo) echo.HandlerFunc

type MiddlewareHandler

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

func NewMiddlewareHandler

func NewMiddlewareHandler(swagger *openapi3.T) (*MiddlewareHandler, error)

func (*MiddlewareHandler) Middleware

func (m *MiddlewareHandler) Middleware() (echo.MiddlewareFunc, error)

func (*MiddlewareHandler) Use

func (m *MiddlewareHandler) Use(mw MiddlewareFunc)

type RouteInfo

type RouteInfo struct {
	OperationID string
	Security    SecurityRequirement
	Resources   []string
}

type SecurityRequirement

type SecurityRequirement interface {
	IsOptional() bool
	NoAuth() bool
	CookieAuth() bool
	BearerAuth() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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