Socket represents a socket within channelz which includes socket metrics and data related to socket activity and provides methods for managing and interacting with sockets.
| 83 | // metrics and data related to socket activity and provides methods |
| 84 | // for managing and interacting with sockets. |
| 85 | type Socket struct { |
| 86 | Entity |
| 87 | SocketType SocketType |
| 88 | ID int64 |
| 89 | Parent Entity |
| 90 | cm *channelMap |
| 91 | SocketMetrics SocketMetrics |
| 92 | EphemeralMetrics func() *EphemeralSocketMetrics |
| 93 | |
| 94 | RefName string |
| 95 | // The locally bound address. Immutable. |
| 96 | LocalAddr net.Addr |
| 97 | // The remote bound address. May be absent. Immutable. |
| 98 | RemoteAddr net.Addr |
| 99 | // Optional, represents the name of the remote endpoint, if different than |
| 100 | // the original target name. Immutable. |
| 101 | RemoteName string |
| 102 | // Immutable. |
| 103 | SocketOptions *SocketOptionData |
| 104 | // Immutable. |
| 105 | Security credentials.ChannelzSecurityValue |
| 106 | } |
| 107 | |
| 108 | // String returns a string representation of the Socket, including its parent |
| 109 | // entity, socket type, and ID. |
nothing calls this directly
no outgoing calls
no test coverage detected