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

Method ListServices

src/brpc/server.cpp:1781–1793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1779}
1780
1781void Server::ListServices(std::vector<google::protobuf::Service*> *services) {
1782 if (!services) {
1783 return;
1784 }
1785 services->clear();
1786 services->reserve(service_count());
1787 for (ServiceMap::const_iterator it = _fullname_service_map.begin();
1788 it != _fullname_service_map.end(); ++it) {
1789 if (it->second.is_user_service()) {
1790 services->push_back(it->second.service);
1791 }
1792 }
1793}
1794
1795void Server::GenerateVersionIfNeeded() {
1796 if (!_version.empty()) {

Callers 2

TEST_FFunction · 0.80
default_methodMethod · 0.80

Calls 6

is_user_serviceMethod · 0.80
clearMethod · 0.45
reserveMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by 1

TEST_FFunction · 0.64