Documentation ¶
Index ¶
- func GetContext(c echo.Context) context.Context
- func GetEventStart(c echo.Context) time.Time
- func GetWs(c echo.Context) *websocket.Conn
- func GetWsLogData(c echo.Context) ([]byte, []string)
- func LogWsRequest(c echo.Context, data []byte)
- func LogWsResponse(c echo.Context, data string)
- func SetReqLogger(c echo.Context)
- func SetWs(c echo.Context, ws *websocket.Conn)
- type EchoContext
- type ReqLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContext ¶
func GetEventStart ¶
func GetWsLogData ¶
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)
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
Click to show internal directories.
Click to hide internal directories.