ws

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flag

type Flag string

type RpcResponse

type RpcResponse struct {
	Status string      `json:"status"`
	Data   interface{} `json:"data"`
}

type WsService

type WsService struct {
	Ctx                    *context.Context
	Cfg                    *configs.MainConfiguration
	ClientHandshakeChannel *chan *entities.ClientHandshake
}

func NewWsService

func NewWsService(mainCtx *context.Context) *WsService

func (*WsService) ServeWebSocket

func (p *WsService) ServeWebSocket(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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