bosssocket package - github.com/boss-technologies/awesome-boss/internal/socket - Go Packages

bosssocket

package
v0.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

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

type WebSocketHandlerFunc func(net.Conn)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL