Documentation ¶
Overview ¶
Package securableConn hides the difference between a plain text connection and an encrypted one so there is no need to track the difference from outside.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { io.Closer SwitchToTLS() error LocalAddr() net.Addr RemoteAddr() net.Addr Writer() *bufio.Writer Reader() *bufio.Reader IsSecure() bool }
Conn interface exposes the method that will work either with plain and encrypted connections. The interface will always return the encrypted connection if available.
Click to show internal directories.
Click to hide internal directories.