Documentation ¶
Overview ¶
an adapter for representing WebSocket connection as a net.Conn some caveats apply: https://github.com/gorilla/websocket/issues/441
Index ¶
- func NewConnectionListener(connType ConnType, url string, connChan chan<- net.Conn, ...)
- type Adapter
- func (a *Adapter) Close() error
- func (a *Adapter) LocalAddr() net.Addr
- func (a *Adapter) Read(b []byte) (int, error)
- func (a *Adapter) RemoteAddr() net.Addr
- func (a *Adapter) SetDeadline(t time.Time) error
- func (a *Adapter) SetReadDeadline(t time.Time) error
- func (a *Adapter) SetWriteDeadline(t time.Time) error
- func (a *Adapter) Write(b []byte) (int, error)
- type ConnType
- type Stdio
- func (s *Stdio) Close() error
- func (s Stdio) LocalAddr() net.Addr
- func (Stdio) Network() string
- func (s *Stdio) Read(b []byte) (int, error)
- func (s Stdio) RemoteAddr() net.Addr
- func (Stdio) SetDeadline(t time.Time) error
- func (Stdio) SetReadDeadline(t time.Time) error
- func (Stdio) SetWriteDeadline(t time.Time) error
- func (Stdio) String() string
- func (s *Stdio) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewWsConnAdapter ¶
func (*Adapter) RemoteAddr ¶
type Stdio ¶
type Stdio struct {
// contains filtered or unexported fields
}
func NewDefaultStdio ¶
func NewDefaultStdio() *Stdio
func NewStdio ¶
func NewStdio(in io.ReadCloser, out io.WriteCloser) *Stdio
func (Stdio) RemoteAddr ¶
RemoteAddr implements net.Conn interface.
func (Stdio) SetDeadline ¶
SetDeadline implements net.Conn interface.
func (Stdio) SetReadDeadline ¶
SetReadDeadline implements net.Conn interface.
func (Stdio) SetWriteDeadline ¶
SetWriteDeadline implements net.Conn interface.
Click to show internal directories.
Click to hide internal directories.