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

Function GetServer

internal/channelz/funcs.go:106–108  ·  view source on GitHub ↗

GetServer returns the ServerMetric for the server (identified by id).

(id int64)

Source from the content-addressed store, hash-verified

104
105// GetServer returns the ServerMetric for the server (identified by id).
106func GetServer(id int64) *Server {
107 return db.getServer(id)
108}
109
110// RegisterChannel registers the given channel c in the channelz database with
111// target as its target and reference name, and adds it to the child list of its

Callers 3

TestCZGetServerMethod · 0.92
TestCZGetSocketMethod · 0.92
GetServerFunction · 0.92

Calls 1

getServerMethod · 0.80

Tested by 2

TestCZGetServerMethod · 0.74
TestCZGetSocketMethod · 0.74