Back to

Package echoutils

Latest Go to latest

The highest tagged major version is .

Published: Oct 19, 2020 | License: BSD-3-Clause | Module:


func AsyncResponse

func AsyncResponse(ctx echo.Context, logicInstance interface{}, methodName string, args ...interface{}) error

func Fail

func Fail(ctx echo.Context, code int, msg string) error

func GetLogger

func GetLogger(ctx context.Context) *logger.Logger

GetLogger 由调用者确保 ctx 中存在 logger.Logger 对象

func IsAsync

func IsAsync(ctx echo.Context) bool


func LogFlush

func LogFlush(ctx context.Context)

func Success

func Success(ctx echo.Context, data interface{}) error

func WrapContext

func WrapContext(ctx context.Context) context.Context

WrapContext 返回一个 context.Context 实例。如果 ctx == nil,需要确保 调用 logger.PutLogger()

func WrapEchoContext

func WrapEchoContext(ctx echo.Context) context.Context

WrapContext 返回一个 context.Context 实例

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier