#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channelz_registry.h"
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <utility>
#include <vector>
#include <grpc/grpc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "src/core/lib/channel/channelz.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/json/json.h"
namespace grpc_core {
namespace channelz {
namespace {
const int kPaginationLimit = …;
}
ChannelzRegistry* ChannelzRegistry::Default() { … }
void ChannelzRegistry::InternalRegister(BaseNode* node) { … }
void ChannelzRegistry::InternalUnregister(intptr_t uuid) { … }
RefCountedPtr<BaseNode> ChannelzRegistry::InternalGet(intptr_t uuid) { … }
std::string ChannelzRegistry::InternalGetTopChannels(
intptr_t start_channel_id) { … }
std::string ChannelzRegistry::InternalGetServers(intptr_t start_server_id) { … }
void ChannelzRegistry::InternalLogAllEntities() { … }
}
}
char* grpc_channelz_get_top_channels(intptr_t start_channel_id) { … }
char* grpc_channelz_get_servers(intptr_t start_server_id) { … }
char* grpc_channelz_get_server(intptr_t server_id) { … }
char* grpc_channelz_get_server_sockets(intptr_t server_id,
intptr_t start_socket_id,
intptr_t max_results) { … }
char* grpc_channelz_get_channel(intptr_t channel_id) { … }
char* grpc_channelz_get_subchannel(intptr_t subchannel_id) { … }
char* grpc_channelz_get_socket(intptr_t socket_id) { … }