example

package
v1.11.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientHandlerTask

type ClientHandlerTask struct {
	websocket.DefaultHandlerTask
}

func (*ClientHandlerTask) WSBinary

func (h *ClientHandlerTask) WSBinary(ctx channel.HandlerContext, message *websocket.DefaultMessage, params map[string]any)

func (*ClientHandlerTask) WSClose

func (h *ClientHandlerTask) WSClose(ctx channel.HandlerContext, message *websocket.CloseMessage, params map[string]any)

func (*ClientHandlerTask) WSConnected

func (h *ClientHandlerTask) WSConnected(ch channel.Channel, req *ghttp.Request, resp *ghttp.Response, params map[string]any)

func (*ClientHandlerTask) WSDisconnected

func (h *ClientHandlerTask) WSDisconnected(ch channel.Channel, req *ghttp.Request, resp *ghttp.Response, params map[string]any)

func (*ClientHandlerTask) WSPing

func (h *ClientHandlerTask) WSPing(ctx channel.HandlerContext, message *websocket.PingMessage, params map[string]any)

func (*ClientHandlerTask) WSPong

func (h *ClientHandlerTask) WSPong(ctx channel.HandlerContext, message *websocket.PongMessage, params map[string]any)

func (*ClientHandlerTask) WSText

func (h *ClientHandlerTask) WSText(ctx channel.HandlerContext, message *websocket.DefaultMessage, params map[string]any)

type CloseTask

type CloseTask struct {
	ghttp.DefaultHTTPHandlerTask
}

func (*CloseTask) Get

func (l *CloseTask) Get(ctx channel.HandlerContext, req *ghttp.Request, resp *ghttp.Response, params map[string]any) ghttp.ErrorResponse

type DefaultHomeTask

type DefaultHomeTask struct {
	ghttp.DefaultHTTPHandlerTask
}

func (*DefaultHomeTask) Get

type DefaultTask

type DefaultTask struct {
	ghttp.DefaultHTTPHandlerTask
}

func (*DefaultTask) Get

func (l *DefaultTask) Get(ctx channel.HandlerContext, req *ghttp.Request, resp *ghttp.Response, params map[string]any) ghttp.ErrorResponse

type Route

type Route struct {
	gtp.DefaultRoute
}

func NewRoute

func NewRoute() *Route

type ServerChildCountHandler

type ServerChildCountHandler struct {
	channel.DefaultHandler
	// contains filtered or unexported fields
}

func (*ServerChildCountHandler) Active

func (*ServerChildCountHandler) Deregister

func (h *ServerChildCountHandler) Deregister(ctx channel.HandlerContext, future channel.Future)

func (*ServerChildCountHandler) Disconnect

func (h *ServerChildCountHandler) Disconnect(ctx channel.HandlerContext, future channel.Future)

func (*ServerChildCountHandler) Inactive

func (*ServerChildCountHandler) Registered

func (h *ServerChildCountHandler) Registered(ctx channel.HandlerContext)

func (*ServerChildCountHandler) Unregistered

func (h *ServerChildCountHandler) Unregistered(ctx channel.HandlerContext)

func (*ServerChildCountHandler) Write

func (h *ServerChildCountHandler) Write(ctx channel.HandlerContext, obj any, future channel.Future)

type ServerHandlerTask

type ServerHandlerTask struct {
	websocket.DefaultServerHandlerTask
}

func (*ServerHandlerTask) WSBinary

func (h *ServerHandlerTask) WSBinary(ctx channel.HandlerContext, message *websocket.DefaultMessage, params map[string]any)

func (*ServerHandlerTask) WSClose

func (h *ServerHandlerTask) WSClose(ctx channel.HandlerContext, message *websocket.CloseMessage, params map[string]any)

func (*ServerHandlerTask) WSConnected

func (h *ServerHandlerTask) WSConnected(ch channel.Channel, req *ghttp.Request, resp *ghttp.Response, params map[string]any)

func (*ServerHandlerTask) WSDisconnected

func (h *ServerHandlerTask) WSDisconnected(ch channel.Channel, req *ghttp.Request, resp *ghttp.Response, params map[string]any)

func (*ServerHandlerTask) WSPing

func (h *ServerHandlerTask) WSPing(ctx channel.HandlerContext, message *websocket.PingMessage, params map[string]any)

func (*ServerHandlerTask) WSPong

func (h *ServerHandlerTask) WSPong(ctx channel.HandlerContext, message *websocket.PongMessage, params map[string]any)

func (*ServerHandlerTask) WSText

func (h *ServerHandlerTask) WSText(ctx channel.HandlerContext, message *websocket.DefaultMessage, params map[string]any)

Jump to

Keyboard shortcuts

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