Documentation
¶
Index ¶
- func DialCustomWS(addr string, dialer *websocket.Dialer) (net.Conn, error)
- func DialWS(addr string) (net.Conn, error)
- func H2Client(addr string, conn net.Conn, host string) (net.Conn, error)
- func WSClient(addr string, conn net.Conn, readBufSize, writeBufSize int) (net.Conn, error)
- func WSClientWithHost(addr string, conn net.Conn, host string, readBufSize, writeBufSize int) (net.Conn, error)
- func WSServe(addr string, backlog int, innerListener net.Listener, ...) (net.Listener, error)
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) CloseChan() <-chan struct{}
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (n int, err error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Write(b []byte) (n int, err error)
- type HttpHandler
- type Listener
- type RawConn
- func (c *RawConn) Close() error
- func (c *RawConn) LocalAddr() net.Addr
- func (c *RawConn) Read(b []byte) (int, error)
- func (c *RawConn) RemoteAddr() net.Addr
- func (c *RawConn) SetDeadline(t time.Time) error
- func (c *RawConn) SetReadDeadline(t time.Time) error
- func (c *RawConn) SetWriteDeadline(t time.Time) error
- func (c *RawConn) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WSClientWithHost ¶ added in v0.0.6
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type HttpHandler ¶
type HttpHandler func(response http.ResponseWriter, request *http.Request)
func (HttpHandler) ServeHTTP ¶
func (h HttpHandler) ServeHTTP(response http.ResponseWriter, request *http.Request)
type RawConn ¶ added in v0.0.5
type RawConn struct {
// contains filtered or unexported fields
}
func (*RawConn) RemoteAddr ¶ added in v0.0.5
func (*RawConn) SetReadDeadline ¶ added in v0.0.5
func (*RawConn) SetWriteDeadline ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.