Documentation
¶
Overview ¶
socket.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WebSocketHandler ¶
func WebSocketHandler(handler WebSocketHandlerFunc) fasthttp.RequestHandler
Types ¶
type BossSocket ¶
type BossSocket struct {
// contains filtered or unexported fields
}
func (*BossSocket) UpgradeHandler ¶
func (bs *BossSocket) UpgradeHandler() fasthttp.RequestHandler
type FixedBufferPool ¶ added in v0.5.0
type FixedBufferPool struct {
// contains filtered or unexported fields
}
FixedBufferPool — кастомный пул буферов с ограничением максимального размера.
func NewFixedBufferPool ¶ added in v0.5.0
func NewFixedBufferPool(bufSize, maxSize int) *FixedBufferPool
func (*FixedBufferPool) Get ¶ added in v0.5.0
func (p *FixedBufferPool) Get() []byte
func (*FixedBufferPool) Put ¶ added in v0.5.0
func (p *FixedBufferPool) Put(buf []byte)
type WebSocketHandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.