Documentation ¶
Index ¶
- func Bind[DstType any](c echo.Context) (*DstType, error)
- func GetRequestID(context echo.Context) string
- func New(logger dinfra.Logger) (*dinfra.HttpServer, error)
- func SetRequestID(context echo.Context, value string)
- func SetResult(c echo.Context, code int) error
- func SetResultWith(c echo.Context, code int, respData any) error
- type RequestIDMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶
func GetRequestID(context echo.Context) string
func SetRequestID ¶
func SetRequestID(context echo.Context, value string)
func SetResultWith ¶
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
Click to show internal directories.
Click to hide internal directories.