Documentation
¶
Index ¶
- type ClientHandlerTask
- func (h *ClientHandlerTask) WSBinary(ctx channel.HandlerContext, message *websocket.DefaultMessage, ...)
- func (h *ClientHandlerTask) WSClose(ctx channel.HandlerContext, message *websocket.CloseMessage, ...)
- func (h *ClientHandlerTask) WSConnected(ch channel.Channel, req *http.Request, resp *http.Response, ...)
- func (h *ClientHandlerTask) WSDisconnected(ch channel.Channel, req *http.Request, resp *http.Response, ...)
- func (h *ClientHandlerTask) WSPing(ctx channel.HandlerContext, message *websocket.PingMessage, ...)
- func (h *ClientHandlerTask) WSPong(ctx channel.HandlerContext, message *websocket.PongMessage, ...)
- func (h *ClientHandlerTask) WSText(ctx channel.HandlerContext, message *websocket.DefaultMessage, ...)
- type CloseTask
- type DefaultHomeTask
- type DefaultTask
- type Route
- type ServerChildCountHandler
- func (h *ServerChildCountHandler) Active(ctx channel.HandlerContext)
- func (h *ServerChildCountHandler) Deregister(ctx channel.HandlerContext, future channel.Future)
- func (h *ServerChildCountHandler) Disconnect(ctx channel.HandlerContext, future channel.Future)
- func (h *ServerChildCountHandler) Inactive(ctx channel.HandlerContext)
- func (h *ServerChildCountHandler) Registered(ctx channel.HandlerContext)
- func (h *ServerChildCountHandler) Unregistered(ctx channel.HandlerContext)
- func (h *ServerChildCountHandler) Write(ctx channel.HandlerContext, obj any, future channel.Future)
- type ServerHandlerTask
- func (h *ServerHandlerTask) WSBinary(ctx channel.HandlerContext, message *websocket.DefaultMessage, ...)
- func (h *ServerHandlerTask) WSClose(ctx channel.HandlerContext, message *websocket.CloseMessage, ...)
- func (h *ServerHandlerTask) WSConnected(ch channel.Channel, req *http.Request, resp *http.Response, ...)
- func (h *ServerHandlerTask) WSDisconnected(ch channel.Channel, req *http.Request, resp *http.Response, ...)
- func (h *ServerHandlerTask) WSPing(ctx channel.HandlerContext, message *websocket.PingMessage, ...)
- func (h *ServerHandlerTask) WSPong(ctx channel.HandlerContext, message *websocket.PongMessage, ...)
- func (h *ServerHandlerTask) WSText(ctx channel.HandlerContext, message *websocket.DefaultMessage, ...)
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 (*ClientHandlerTask) WSDisconnected ¶
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 {
http.DefaultHTTPHandlerTask
}
type DefaultHomeTask ¶
type DefaultHomeTask struct {
http.DefaultHTTPHandlerTask
}
func (*DefaultHomeTask) Get ¶
func (l *DefaultHomeTask) Get(ctx channel.HandlerContext, req *http.Request, resp *http.Response, params map[string]any) http.ErrorResponse
type DefaultTask ¶
type DefaultTask struct {
http.DefaultHTTPHandlerTask
}
func (*DefaultTask) Get ¶
func (l *DefaultTask) Get(ctx channel.HandlerContext, req *http.Request, resp *http.Response, params map[string]any) http.ErrorResponse
type ServerChildCountHandler ¶ added in v1.1.0
type ServerChildCountHandler struct {
channel.DefaultHandler
// contains filtered or unexported fields
}
func (*ServerChildCountHandler) Active ¶ added in v1.1.0
func (h *ServerChildCountHandler) Active(ctx channel.HandlerContext)
func (*ServerChildCountHandler) Deregister ¶ added in v1.1.0
func (h *ServerChildCountHandler) Deregister(ctx channel.HandlerContext, future channel.Future)
func (*ServerChildCountHandler) Disconnect ¶ added in v1.1.0
func (h *ServerChildCountHandler) Disconnect(ctx channel.HandlerContext, future channel.Future)
func (*ServerChildCountHandler) Inactive ¶ added in v1.1.0
func (h *ServerChildCountHandler) Inactive(ctx channel.HandlerContext)
func (*ServerChildCountHandler) Registered ¶ added in v1.1.0
func (h *ServerChildCountHandler) Registered(ctx channel.HandlerContext)
func (*ServerChildCountHandler) Unregistered ¶ added in v1.1.0
func (h *ServerChildCountHandler) Unregistered(ctx channel.HandlerContext)
func (*ServerChildCountHandler) Write ¶ added in v1.1.0
func (h *ServerChildCountHandler) Write(ctx channel.HandlerContext, obj any, future channel.Future)
type ServerHandlerTask ¶
type ServerHandlerTask struct {
websocket.DefaultServerHandlerTask
}
func (*ServerHandlerTask) WSBinary ¶ added in v1.0.11
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 (*ServerHandlerTask) WSDisconnected ¶
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)
Click to show internal directories.
Click to hide internal directories.