echoutil

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContext

func GetContext(c echo.Context) context.Context

func GetEventStart

func GetEventStart(c echo.Context) time.Time

func GetWs

func GetWs(c echo.Context) *websocket.Conn

func GetWsLogData

func GetWsLogData(c echo.Context) ([]byte, []string)

func LogWsRequest

func LogWsRequest(c echo.Context, data []byte)

func LogWsResponse

func LogWsResponse(c echo.Context, data string)

func SetReqLogger

func SetReqLogger(c echo.Context)

func SetWs

func SetWs(c echo.Context, ws *websocket.Conn)

Types

type EchoContext

type EchoContext struct {
	echo.Context
	// contains filtered or unexported fields
}

func NewEchoContext

func NewEchoContext(c echo.Context, ctx context.Context, eventStart time.Time) *EchoContext

type ReqLogger

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

func GetReqLogger

func GetReqLogger(c echo.Context) *ReqLogger

Jump to

Keyboard shortcuts

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