http

package
v0.0.0-...-7ae5bdd Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRegister

func AutoRegister(e *echo.Echo, server interface{}, prefix string, code2Http func(codes.Code) int)

func GenCtxFromEchoAndSetRequest

func GenCtxFromEchoAndSetRequest(c echo.Context) context.Context

func NewHTTPServer

func NewHTTPServer(p params) *echo.Echo

Types

type Codec

type Codec interface {
	EncodeResponse(r *http.Request, w http.ResponseWriter, respValue interface{}, err error) error
	Decode(r *http.Request, requestValue interface{}) error
}

Jump to

Keyboard shortcuts

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