Documentation ¶
Index ¶
- Variables
- func DialAddr(addr string, relayURL *url.URL) (string, error)
- func DialConn(ctx context.Context, addr string, hdr http.Header) (conn net.Conn, err error)
- func Listen(ctx context.Context, addr string) (*common.Listener, error)
- type StreamConn
- type Transport
- type Upgrader
- type WebsocketSession
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type StreamConn ¶
StreamsConn wraps *yamux.Stream into net.Conn
func (*StreamConn) Close ¶
func (sc *StreamConn) Close() error
func (*StreamConn) CloseRead ¶
func (sc *StreamConn) CloseRead() error
func (*StreamConn) CloseWrite ¶
func (sc *StreamConn) CloseWrite() error
type Upgrader ¶ added in v0.5.24
type Upgrader struct { HOST string // contains filtered or unexported fields }
type WebsocketSession ¶
func (*WebsocketSession) Close ¶
func (s *WebsocketSession) Close() error
Click to show internal directories.
Click to hide internal directories.