Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferedConn ¶
func NewBufferedConn ¶
func NewBufferedConn(conn net.Conn) *BufferedConn
type QueueListener ¶
type QueueListener struct {
// contains filtered or unexported fields
}
func NewQueueListener ¶
func NewQueueListener(queue <-chan *BufferedConn) QueueListener
func (QueueListener) Addr ¶
func (l QueueListener) Addr() net.Addr
func (QueueListener) Close ¶
func (l QueueListener) Close() error
type TimeoutConn ¶
func NewTimeoutConn ¶
func NewTimeoutConn(conn net.Conn, timeout time.Duration) *TimeoutConn
NewTimeoutConn creates new TimeoutConn
func (*TimeoutConn) Read ¶
func (t *TimeoutConn) Read(b []byte) (int, error)
Read reads data from connection with deadline
func (*TimeoutConn) SetTimeout ¶
func (t *TimeoutConn) SetTimeout(timeout time.Duration)
SetTimeout sets timeout for connection
Click to show internal directories.
Click to hide internal directories.