GetServer returns the ServerMetric for the server (identified by id).
(id int64)
| 104 | |
| 105 | // GetServer returns the ServerMetric for the server (identified by id). |
| 106 | func 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 |