RemoveEntry removes an entry with unique channelz tracking id to be id from channelz database. If channelz is not turned ON, this function is a no-op.
(id int64)
| 200 | // |
| 201 | // If channelz is not turned ON, this function is a no-op. |
| 202 | func RemoveEntry(id int64) { |
| 203 | if !IsOn() { |
| 204 | return |
| 205 | } |
| 206 | db.removeEntry(id) |
| 207 | } |
| 208 | |
| 209 | // IDGenerator is an incrementing atomic that tracks IDs for channelz entities. |
| 210 | type IDGenerator struct { |