Documentation
¶
Overview ¶
Package netout provides a unified network output supporting tcp, tls, udp, and unix protocols.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output holds options and the active connection.
func (*Output) Close ¶
Close closes the connection. For stream-oriented protocols (tcp, tls, unix) it performs a graceful shutdown by signalling EOF and draining remaining data.
func (*Output) DialContext ¶
DialContext connects to the address in opts using the protocol in opts.
Click to show internal directories.
Click to hide internal directories.