MCPcopy Create free account
hub / github.com/apache/dubbo-go / createReflectionMethodFunc

Function createReflectionMethodFunc

server/server.go:233–237  ·  view source on GitHub ↗

createReflectionMethodFunc creates a MethodFunc that calls the given method via reflection.

(method reflect.Method)

Source from the content-addressed store, hash-verified

231
232// createReflectionMethodFunc creates a MethodFunc that calls the given method via reflection.
233func 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,

Callers 1

enhanceServiceInfoFunction · 0.85

Calls 1

CallMethodByReflectionFunction · 0.85

Tested by

no test coverage detected