UnimplementedChannelzServer should be embedded to have forward compatible implementations. NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
| 181 | // NOTE: this should be embedded by value instead of pointer to avoid a nil |
| 182 | // pointer dereference when methods are called. |
| 183 | type UnimplementedChannelzServer struct{} |
| 184 | |
| 185 | func (UnimplementedChannelzServer) GetTopChannels(context.Context, *GetTopChannelsRequest) (*GetTopChannelsResponse, error) { |
| 186 | return nil, status.Error(codes.Unimplemented, "method GetTopChannels not implemented") |
nothing calls this directly
no outgoing calls
no test coverage detected