middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxLogger

func CtxLogger() echo.MiddlewareFunc

Types

type CtxLogData

type CtxLogData struct {
	Request   Request  `json:"request"`
	Response  Response `json:"response"`
	RequestId string   `json:"requestId"`
}

type Request

type Request struct {
	Header http.Header `json:"header"`
	Uri    string      `json:"uri"`
	Method string      `json:"method"`
	Body   *echo.Map   `json:"body"`
}

type Response

type Response struct {
	Body   *echo.Map `json:"body"`
	Status int       `json:"status"`
}

type Writer

type Writer struct {
	http.ResponseWriter
	Bytes []byte
}

func (*Writer) Write

func (w *Writer) Write(bytes []byte) (int, error)

Jump to

Keyboard shortcuts

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