Documentation ¶
Index ¶
- func DialCustomWS(addr string, dialer *websocket.Dialer) (net.Conn, error)
- func DialWS(addr string) (net.Conn, error)
- func WSClient(addr string, conn net.Conn, 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.