conn

package
v0.0.0-...-721e2d6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReadTimeout  = errors.New("read timeout")
	ErrWriteTimeout = errors.New("write timeout")
	ErrClosed       = errors.New("closed")
)

Functions

func TestPair

func TestPair() (c1 Conn, c2 Conn)

Types

type Conn

type Conn interface {
	Read() (msg []byte, err error)
	Write(msg []byte) error
	Close()
	SetReadDeadline(time.Time) error
	SetWriteDeadline(time.Time) error
}

func WebSocket

func WebSocket(ws *websocket.Conn) Conn

Jump to

Keyboard shortcuts

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