addMiddleware wraps the handler in the middleware functions.
(handlerp *MethodHandler, middleware []Middleware)
| 86 | |
| 87 | // addMiddleware wraps the handler in the middleware functions. |
| 88 | func addMiddleware(handlerp *MethodHandler, middleware []Middleware) { |
| 89 | for _, m := range slices.Backward(middleware) { |
| 90 | *handlerp = m(*handlerp) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func defaultSendingMethodHandler(ctx context.Context, method string, req Request) (Result, error) { |
| 95 | info, ok := req.GetSession().sendingMethodInfos()[method] |
no outgoing calls
no test coverage detected
searching dependent graphs…