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

Function RegisterChannelzServiceToServer

channelz/service/service.go:42–44  ·  view source on GitHub ↗

RegisterChannelzServiceToServer registers the channelz service to the given server. Note: it is preferred to use the admin API (https://pkg.go.dev/google.golang.org/grpc/admin#Register) instead to register Channelz and other administrative services.

(s grpc.ServiceRegistrar)

Source from the content-addressed store, hash-verified

40// (https://pkg.go.dev/google.golang.org/grpc/admin#Register) instead to
41// register Channelz and other administrative services.
42func RegisterChannelzServiceToServer(s grpc.ServiceRegistrar) {
43 channelzgrpc.RegisterChannelzServer(s, newCZServer())
44}
45
46func newCZServer() channelzgrpc.ChannelzServer {
47 return &serverImpl{}

Callers 2

mainFunction · 0.92
mainFunction · 0.92

Calls 1

newCZServerFunction · 0.85

Tested by

no test coverage detected