Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogMiddleware = func(name string) endpoint.Middleware { return func(handler endpoint.Endpoint) endpoint.Endpoint { return func(ctx context.Context, req, resp interface{}) error { err := handler(ctx, req, resp) log.CtxInfo(ctx, "[%s RPC Request] req=%s, resp=%s, err=%v", name, util.JSONF(req), util.JSONF(resp), err) return err } } } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.