| 1910 | } |
| 1911 | |
| 1912 | void Server::PrintTabsBody(std::ostream& os, |
| 1913 | const char* current_tab_name) const { |
| 1914 | os << "<ul class='tabs-menu'>\n"; |
| 1915 | if (_tab_info_list) { |
| 1916 | for (size_t i = 0; i < _tab_info_list->size(); ++i) { |
| 1917 | const TabInfo& info = (*_tab_info_list)[i]; |
| 1918 | tabs_li(os, info.path.c_str(), info.tab_name.c_str(), |
| 1919 | current_tab_name); |
| 1920 | } |
| 1921 | } |
| 1922 | os << "<li id='https://github.com/apache/brpc/blob/master/docs/cn/builtin_service.md' " |
| 1923 | "class='help'>?</li>\n</ul>\n" |
| 1924 | "<div style='height:40px;'></div>"; // placeholder |
| 1925 | } |
| 1926 | |
| 1927 | static pthread_mutex_t g_dummy_server_mutex = PTHREAD_MUTEX_INITIALIZER; |
| 1928 | static Server* g_dummy_server = NULL; |
no test coverage detected