Documentation ¶
Index ¶
- Constants
- type Config
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(p []byte) (int, 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(p []byte) (n int, err error)
- type Handler
- type Option
- type Server
Constants ¶
View Source
const ( TextMessage = websocket.TextMessage BinaryMessage = websocket.BinaryMessage )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type Option ¶
type Option struct { Config Logger logger.Logger MaxHeaderBytes int ConnState func(net.Conn, http.ConnState) TLSConfig *tls.Config TLSNextProto map[string]func(*http.Server, *tls.Conn, http.Handler) ErrorLog *log.Logger BaseContext func(net.Listener) context.Context ConnContext func(ctx context.Context, c net.Conn) context.Context CheckOrigin func(r *http.Request) bool MessageType int }
Click to show internal directories.
Click to hide internal directories.