MCPcopy
hub / github.com/nats-io/nats.go / String

Method String

nats.go:198–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196)
197
198func (s Status) String() string {
199 switch s {
200 case DISCONNECTED:
201 return "DISCONNECTED"
202 case CONNECTED:
203 return "CONNECTED"
204 case CLOSED:
205 return "CLOSED"
206 case RECONNECTING:
207 return "RECONNECTING"
208 case CONNECTING:
209 return "CONNECTING"
210 case DRAINING_SUBS:
211 return "DRAINING_SUBS"
212 case DRAINING_PUBS:
213 return "DRAINING_PUBS"
214 }
215 return "unknown status"
216}
217
218// ConnHandler is used for asynchronous events such as
219// disconnected and closed connections.

Callers 15

startHeaderCatcherFunction · 0.45
TestSimplifiedURLsFunction · 0.45
TestServersRandomizeFunction · 0.45
TestSelectNextServerFunction · 0.45
GetStringMethod · 0.45
ConnectedUrlMethod · 0.45
ConnectedAddrMethod · 0.45
LocalAddrMethod · 0.45
doReconnectMethod · 0.45
NewInboxMethod · 0.45
newRespInboxMethod · 0.45
SetServerPoolMethod · 0.45

Calls

no outgoing calls

Tested by 11

startHeaderCatcherFunction · 0.36
TestSimplifiedURLsFunction · 0.36
TestServersRandomizeFunction · 0.36
TestSelectNextServerFunction · 0.36
TestConnectionStatusFunction · 0.36
TestSetServerPoolFunction · 0.36
TestConnectedAddrFunction · 0.36
setupJSClusterWithSizeFunction · 0.36
TestPingReconnectFunction · 0.36