Documentation ¶
Index ¶
- Variables
- func ConnectHttp(ctx context.Context, client *http.Client, method, url string, ...) (conn net.Conn, e error)
- type ApiHandler
- type Handler
- type ServeMux
- func (mux *ServeMux) Delete(pattern string, handler http.HandlerFunc)
- func (mux *ServeMux) Get(pattern string, handler http.HandlerFunc)
- func (mux *ServeMux) Head(pattern string, handler http.HandlerFunc)
- func (mux *ServeMux) Patch(pattern string, handler http.HandlerFunc)
- func (mux *ServeMux) Post(pattern string, handler http.HandlerFunc)
- func (mux *ServeMux) Put(pattern string, handler http.HandlerFunc)
- func (mux *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type WebsocketConn
- func (w *WebsocketConn) Close() error
- func (w *WebsocketConn) LocalAddr() net.Addr
- func (w *WebsocketConn) Read(b []byte) (n int, e error)
- func (w *WebsocketConn) RemoteAddr() net.Addr
- func (w *WebsocketConn) SetDeadline(t time.Time) error
- func (w *WebsocketConn) SetReadDeadline(t time.Time) error
- func (w *WebsocketConn) SetWriteDeadline(t time.Time) error
- func (w *WebsocketConn) Websocket() *websocket.Conn
- func (w *WebsocketConn) Write(b []byte) (n int, e error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDialerClosed = errors.New(`dialer already closed`)
Functions ¶
Types ¶
type ApiHandler ¶
type ApiHandler struct { Method []string Path string Handler http.HandlerFunc }
type WebsocketConn ¶
type WebsocketConn struct {
// contains filtered or unexported fields
}
func NewWebsocketConn ¶
func NewWebsocketConn(ws *websocket.Conn) *WebsocketConn
func (*WebsocketConn) Close ¶
func (w *WebsocketConn) Close() error
func (*WebsocketConn) LocalAddr ¶
func (w *WebsocketConn) LocalAddr() net.Addr
func (*WebsocketConn) RemoteAddr ¶
func (w *WebsocketConn) RemoteAddr() net.Addr
func (*WebsocketConn) SetDeadline ¶
func (w *WebsocketConn) SetDeadline(t time.Time) error
func (*WebsocketConn) SetReadDeadline ¶
func (w *WebsocketConn) SetReadDeadline(t time.Time) error
func (*WebsocketConn) SetWriteDeadline ¶
func (w *WebsocketConn) SetWriteDeadline(t time.Time) error
func (*WebsocketConn) Websocket ¶
func (w *WebsocketConn) Websocket() *websocket.Conn
Click to show internal directories.
Click to hide internal directories.