Documentation
¶
Index ¶
- type BufferPoolKey
- type CheckOriginKey
- type ErrorKey
- type Option
- func WithCheckOrigin(checkOrigin func(r *http.Request) bool) Option
- func WithEnableCompression(enableCompression bool) Option
- func WithError(err func(w http.ResponseWriter, r *http.Request, status int, reason error)) Option
- func WithHandshakeTimeout(handshakeTimeout time.Duration) Option
- func WithReadBufferSize(readBuffSize int) Option
- func WithSubprotocols(subProtocols []string) Option
- func WithWriteBufferPool(writeBufferPool websocket.BufferPool) Option
- func WithWriteBufferSize(writeBuffSize int) Option
- type Options
- type Websocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPoolKey ¶
type BufferPoolKey struct{}
type CheckOriginKey ¶
type CheckOriginKey struct{}
type Option ¶
type Option func(*Options)
func WithEnableCompression ¶
func WithHandshakeTimeout ¶
func WithReadBufferSize ¶
func WithSubprotocols ¶
func WithWriteBufferPool ¶
func WithWriteBufferPool(writeBufferPool websocket.BufferPool) Option
func WithWriteBufferSize ¶
Click to show internal directories.
Click to hide internal directories.