middlewares

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateFromFormQuery

func UpdateFromFormQuery(c echo.Context, options ...parameters.ParseStepOption) middlewares.Middleware

UpdateFromFormQuery is a convenience function that creates a FormMiddleware and returns its middleware function

func UpdateFromQueryParameters

func UpdateFromQueryParameters(c echo.Context, options ...parameters.ParseStepOption) middlewares.Middleware

Types

type FormMiddleware added in v0.5.18

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

FormMiddleware is a struct-based middleware that handles form data and file uploads and manages temporary files created during processing.

func NewFormMiddleware added in v0.5.18

func NewFormMiddleware(c echo.Context, options ...parameters.ParseStepOption) *FormMiddleware

NewFormMiddleware creates a new FormMiddleware instance

func (*FormMiddleware) Close added in v0.5.18

func (m *FormMiddleware) Close() error

Close cleans up any temporary files created during processing

func (*FormMiddleware) Middleware added in v0.5.18

func (m *FormMiddleware) Middleware() middlewares.Middleware

Middleware returns the actual middleware function

type JSONBodyMiddleware added in v0.5.18

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

JSONBodyMiddleware is a struct-based middleware that handles JSON POST requests and manages temporary files created during processing.

func NewJSONBodyMiddleware added in v0.5.18

func NewJSONBodyMiddleware(c echo.Context, options ...parameters.ParseStepOption) *JSONBodyMiddleware

NewJSONBodyMiddleware creates a new JSONBodyMiddleware instance

func (*JSONBodyMiddleware) Close added in v0.5.18

func (m *JSONBodyMiddleware) Close() error

Close cleans up any temporary files created during processing

func (*JSONBodyMiddleware) Middleware added in v0.5.18

func (m *JSONBodyMiddleware) Middleware() middlewares.Middleware

Middleware returns the actual middleware function

Jump to

Keyboard shortcuts

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