MCPcopy Create free account
hub / github.com/digitalocean/go-libvirt / Disconnected

Method Disconnected

socket/socket.go:185–187  ·  view source on GitHub ↗

Disconnected returns a channel that will be closed once the current connection is closed. This can happen due to an explicit call to Disconnect from the client, or due to non-temporary Read or Write errors encountered.

()

Source from the content-addressed store, hash-verified

183// connection is closed. This can happen due to an explicit call to Disconnect
184// from the client, or due to non-temporary Read or Write errors encountered.
185func (s *Socket) Disconnected() <-chan struct{} {
186 return s.disconnected
187}
188
189// isDisconnected is a non-blocking function to query whether a connection
190// is disconnected or not.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected