roconn

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoConn

type RoConn struct {
	net.Conn
	Buf bytes.Buffer
}

Read only net.Conn. Wraps net.Conn and prevents any write/close operations from reaching underlying net.Conn. All data read from underlying net.Conn is copied into RoConn.Buf

func (*RoConn) Close

func (conn *RoConn) Close() error

func (*RoConn) Read

func (conn *RoConn) Read(p []byte) (n int, err error)

func (*RoConn) SetDeadline

func (conn *RoConn) SetDeadline(_ time.Time) error

func (*RoConn) SetReadDeadline

func (conn *RoConn) SetReadDeadline(_ time.Time) error

func (*RoConn) SetWriteDeadline

func (conn *RoConn) SetWriteDeadline(_ time.Time) error

func (*RoConn) Write

func (conn *RoConn) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL