MCPcopy
hub / github.com/grpc/grpc-go / GetTopChannels

Function GetTopChannels

internal/channelz/funcs.go:65–67  ·  view source on GitHub ↗

GetTopChannels returns a slice of top channel's ChannelMetric, along with a boolean indicating whether there's more top channels to be queried for. The arg id specifies that only top channel with id at or above it will be included in the result. The returned slice is up to a length of the arg maxRe

(id int64, maxResults int)

Source from the content-addressed store, hash-verified

63// maxResults or EntriesPerPage if maxResults is zero, and is sorted in ascending
64// id order.
65func GetTopChannels(id int64, maxResults int) ([]*Channel, bool) {
66 return db.getTopChannels(id, maxResults)
67}
68
69// GetServers returns a slice of server's ServerMetric, along with a
70// boolean indicating whether there's more servers to be queried for.

Calls 1

getTopChannelsMethod · 0.80