MCPcopy
hub / github.com/prometheus/node_exporter / String

Method String

collector/tcpstat_linux.go:201–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199}
200
201func (st tcpConnectionState) String() string {
202 switch st {
203 case tcpEstablished:
204 return "established"
205 case tcpSynSent:
206 return "syn_sent"
207 case tcpSynRecv:
208 return "syn_recv"
209 case tcpFinWait1:
210 return "fin_wait1"
211 case tcpFinWait2:
212 return "fin_wait2"
213 case tcpTimeWait:
214 return "time_wait"
215 case tcpClose:
216 return "close"
217 case tcpCloseWait:
218 return "close_wait"
219 case tcpLastAck:
220 return "last_ack"
221 case tcpListen:
222 return "listen"
223 case tcpClosing:
224 return "closing"
225 case tcpRxQueuedBytes:
226 return "rx_queued_bytes"
227 case tcpTxQueuedBytes:
228 return "tx_queued_bytes"
229 default:
230 return "unknown"
231 }
232}

Callers 15

mainFunction · 0.80
netdev_common.goFile · 0.80
getAddrsInfoFunction · 0.80
TestTextfileCollectorFunction · 0.80
systemd_linux.goFile · 0.80
getSessionMethod · 0.80
netclass_linux.goFile · 0.80
vmstat_linux.goFile · 0.80
TestIPVSCollectorFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestTextfileCollectorFunction · 0.64
TestIPVSCollectorFunction · 0.64