handler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	// Request returns [*http.Request]
	Request() *http.Request
	// Response returns [*echo.Response].
	Response() *echo.Response
	// Stream sends a streaming response with status code and content type.
	Stream(code int, contentType string, r io.Reader) error
}

Context is a context compatible with echo server echo.Context that has only interface methods that are needed.

type Func

type Func func(c Context) error

Func is a HTTP handler function that takes an echo compatible Context.

func (Func) ToEcho

func (h Func) ToEcho() echo.HandlerFunc

Jump to

Keyboard shortcuts

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