Documentation ¶
Index ¶
- type ContextAwareConn
- func (c ContextAwareConn) Close() error
- func (c ContextAwareConn) LocalAddr() net.Addr
- func (c ContextAwareConn) Read(b []byte) (n int, err error)
- func (c ContextAwareConn) RemoteAddr() net.Addr
- func (c ContextAwareConn) SetDeadline(t time.Time) error
- func (c ContextAwareConn) SetReadDeadline(t time.Time) error
- func (c ContextAwareConn) SetWriteDeadline(t time.Time) error
- func (c ContextAwareConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextAwareConn ¶
type ContextAwareConn struct {
// contains filtered or unexported fields
}
func NewContextAwareConn ¶
func NewContextAwareConn(conn net.Conn, ctx context.Context) *ContextAwareConn
func (ContextAwareConn) Close ¶
func (c ContextAwareConn) Close() error
func (ContextAwareConn) LocalAddr ¶
func (c ContextAwareConn) LocalAddr() net.Addr
func (ContextAwareConn) RemoteAddr ¶
func (c ContextAwareConn) RemoteAddr() net.Addr
func (ContextAwareConn) SetDeadline ¶
func (c ContextAwareConn) SetDeadline(t time.Time) error
func (ContextAwareConn) SetReadDeadline ¶
func (c ContextAwareConn) SetReadDeadline(t time.Time) error
func (ContextAwareConn) SetWriteDeadline ¶
func (c ContextAwareConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.