MCPcopy Create free account
hub / github.com/apache/brpc / find_method_by_name

Function find_method_by_name

tools/rpc_press/pb_util.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace pbrpcframework {
33
34const MethodDescriptor* find_method_by_name(const string& service_name,
35 const string& method_name,
36 Importer* importer) {
37 const ServiceDescriptor* descriptor =
38 importer->pool()->FindServiceByName(service_name);
39 if (NULL == descriptor) {
40 LOG(FATAL) << "Fail to find service=" << service_name;
41 return NULL;
42 }
43 return descriptor->FindMethodByName(method_name);
44}
45
46const Message* get_prototype_by_method_descriptor(
47 const MethodDescriptor* descripter,

Callers 2

initMethod · 0.85
get_prototype_by_nameFunction · 0.85

Calls 1

FindServiceByNameMethod · 0.80

Tested by

no test coverage detected