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

Function RemoveEntry

internal/channelz/funcs.go:202–207  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

200//
201// If channelz is not turned ON, this function is a no-op.
202func 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.
210type IDGenerator struct {

Callers 15

CloseMethod · 0.92
stopMethod · 0.92
CloseMethod · 0.92
tearDownMethod · 0.92
CloseMethod · 0.92
channelzSubChannelFunction · 0.92
CloseMethod · 0.92
setupFunction · 0.92
TestGetTopChannelsMethod · 0.92
TestGetServersMethod · 0.92

Calls 2

IsOnFunction · 0.85
removeEntryMethod · 0.45

Tested by 12

channelzSubChannelFunction · 0.74
setupFunction · 0.74
TestGetTopChannelsMethod · 0.74
TestGetServersMethod · 0.74
TestGetServerSocketsMethod · 0.74
TestGetChannelMethod · 0.74
TestGetSubChannelMethod · 0.74
TestGetSocketMethod · 0.74
TestGetSocketOptionsMethod · 0.74