Documentation
¶
Overview ¶
Package transport provides several dialers and listeners for getting qmux sessions over TCP, Unix sockets, WebSocket, and stdio.
Index ¶
- func DialIO(out io.WriteCloser, in io.ReadCloser) (mux.Session, error)
- func DialStdio() (mux.Session, error)
- func DialTCP(addr string) (mux.Session, error)
- func DialUnix(addr string) (mux.Session, error)
- func DialWS(addr string) (mux.Session, error)
- func HandleWS(l *NetListener, ws *websocket.Conn)
- type IOListener
- type Listener
- type NetListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialIO ¶
func DialIO(out io.WriteCloser, in io.ReadCloser) (mux.Session, error)
func HandleWS ¶
func HandleWS(l *NetListener, ws *websocket.Conn)
Types ¶
type IOListener ¶
type IOListener struct {
io.ReadWriteCloser
}
func ListenIO ¶
func ListenIO(out io.WriteCloser, in io.ReadCloser) (*IOListener, error)
func ListenStdio ¶
func ListenStdio() (*IOListener, error)
type NetListener ¶
func ListenTCP ¶
func ListenTCP(addr string) (*NetListener, error)
func ListenUnix ¶
func ListenUnix(addr string) (*NetListener, error)
func ListenWS ¶
func ListenWS(addr string) (*NetListener, error)
func (*NetListener) Close ¶
func (l *NetListener) Close() error
Click to show internal directories.
Click to hide internal directories.