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

Method GetSubchannel

channelz/service/service.go:82–88  ·  view source on GitHub ↗
(_ context.Context, req *channelzpb.GetSubchannelRequest)

Source from the content-addressed store, hash-verified

80}
81
82func (s *serverImpl) GetSubchannel(_ context.Context, req *channelzpb.GetSubchannelRequest) (*channelzpb.GetSubchannelResponse, error) {
83 subChan, err := protoconv.GetSubChannel(req.GetSubchannelId())
84 if err != nil {
85 return nil, err
86 }
87 return &channelzpb.GetSubchannelResponse{Subchannel: subChan}, nil
88}
89
90func (s *serverImpl) GetServerSockets(_ context.Context, req *channelzpb.GetServerSocketsRequest) (*channelzpb.GetServerSocketsResponse, error) {
91 resp := &channelzpb.GetServerSocketsResponse{}

Callers

nothing calls this directly

Calls 2

GetSubChannelFunction · 0.92
GetSubchannelIdMethod · 0.45

Tested by

no test coverage detected