codegen

package
v0.0.0-...-996d052 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented")

Functions

func ContextPrepareMiddleware

func ContextPrepareMiddleware(lg zerolog.Logger) func(handler http.Handler) http.Handler

func ContextPrepareMiddlewareEcho

func ContextPrepareMiddlewareEcho(lg zerolog.Logger) echo.MiddlewareFunc

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

func NewChiHandler

func NewChiHandler(lg zerolog.Logger) http.Handler

func NewEchoHandler

func NewEchoHandler(lg zerolog.Logger) http.Handler

func RecoverMiddleware

func RecoverMiddleware(next http.Handler) http.Handler

func RecoverMiddlewareEcho

func RecoverMiddlewareEcho(next echo.HandlerFunc) echo.HandlerFunc

func RequestErrorHandlerFunc

func RequestErrorHandlerFunc(w http.ResponseWriter, r *http.Request, err error)

func RequestLoggingMiddleware

func RequestLoggingMiddleware(next http.Handler) http.Handler

func RequestLoggingMiddlewareEcho

func RequestLoggingMiddlewareEcho(next echo.HandlerFunc) echo.HandlerFunc

func ResponseErrorHandlerFunc

func ResponseErrorHandlerFunc(w http.ResponseWriter, r *http.Request, err error)

func StartServer

func StartServer(addr string, lg zerolog.Logger, handler http.Handler) error

Types

Directories

Path Synopsis
server
chi
Package oapi_chi_server provides primitives to interact with the openapi HTTP API.
Package oapi_chi_server provides primitives to interact with the openapi HTTP API.
echo
Package oapi_echo_server provides primitives to interact with the openapi HTTP API.
Package oapi_echo_server provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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