extecho

package
v0.0.0-...-aa3d5c5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind[DstType any](c echo.Context) (*DstType, error)

func GetRequestID

func GetRequestID(context echo.Context) string

func New

func New(
	logger dinfra.Logger,
) (*dinfra.HttpServer, error)

func SetRequestID

func SetRequestID(context echo.Context, value string)

func SetResult

func SetResult(c echo.Context, code int) error

func SetResultWith

func SetResultWith(c echo.Context, code int, respData any) error

Types

type RequestIDMiddleware

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

func NewRequestIDMiddleware

func NewRequestIDMiddleware(
	logger dinfra.Logger,
) *RequestIDMiddleware

func (*RequestIDMiddleware) Handle

func (middleware *RequestIDMiddleware) Handle(c echo.Context, next echo.HandlerFunc) error

Jump to

Keyboard shortcuts

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