GetSocket returns the protobuf representation of the socket with the given ID.
(id int64)
| 128 | // GetSocket returns the protobuf representation of the socket with the given |
| 129 | // ID. |
| 130 | func GetSocket(id int64) (*channelzpb.Socket, error) { |
| 131 | skt := channelz.GetSocket(id) |
| 132 | if skt == nil { |
| 133 | return nil, status.Errorf(codes.NotFound, "requested socket %d not found", id) |
| 134 | } |
| 135 | return socketToProto(skt), nil |
| 136 | } |
no test coverage detected