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

Function GetServers

internal/channelz/funcs.go:75–77  ·  view source on GitHub ↗

GetServers returns a slice of server's ServerMetric, along with a boolean indicating whether there's more servers to be queried for. The arg id specifies that only server with id at or above it will be included in the result. The returned slice is up to a length of the arg maxResults or EntriesPerP

(id int64, maxResults int)

Source from the content-addressed store, hash-verified

73// in the result. The returned slice is up to a length of the arg maxResults or
74// EntriesPerPage if maxResults is zero, and is sorted in ascending id order.
75func GetServers(id int64, maxResults int) ([]*Server, bool) {
76 return db.getServers(id, maxResults)
77}
78
79// GetServerSockets returns a slice of server's (identified by id) normal socket's
80// SocketMetrics, along with a boolean indicating whether there's more sockets to

Calls 1

getServersMethod · 0.80