createReflectionMethodFunc creates a MethodFunc that calls the given method via reflection.
(method reflect.Method)
| 231 | |
| 232 | // createReflectionMethodFunc creates a MethodFunc that calls the given method via reflection. |
| 233 | func createReflectionMethodFunc(method reflect.Method) func(ctx context.Context, args []any, handler any) (any, error) { |
| 234 | return func(ctx context.Context, args []any, handler any) (any, error) { |
| 235 | return CallMethodByReflection(ctx, method, handler, args) |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | // enhanceServiceInfo fills in missing MethodFunc entries via reflection. |
| 240 | // Case-insensitive Triple routing is handled in the transport-layer route mux, |
no test coverage detected