handler

package
v0.0.0-...-08474b0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecByWebSocketCtrl

type ExecByWebSocketCtrl struct {
	Namespace         string
	*websocket.NSConn `stateless:"true"`
}

func NewWebsocketCtrl

func NewWebsocketCtrl() *ExecByWebSocketCtrl

func (*ExecByWebSocketCtrl) OnChat

func (c *ExecByWebSocketCtrl) OnChat(wsMsg websocket.Message) (err error)

OnChat This will call the "OnVisit" event on all clients, including the current one, with the 'newCount' variable.

func (*ExecByWebSocketCtrl) OnNamespaceConnected

func (c *ExecByWebSocketCtrl) OnNamespaceConnected(wsMsg websocket.Message) error

OnNamespaceConnected

func (*ExecByWebSocketCtrl) OnNamespaceDisconnect

func (c *ExecByWebSocketCtrl) OnNamespaceDisconnect(wsMsg websocket.Message) error

OnNamespaceDisconnect This will call the "OnVisit" event on all clients, except the current one, it can't because it's left but for any case use this type of design.

type HealthzCtrl

type HealthzCtrl struct {
}

func (*HealthzCtrl) Get

func (c *HealthzCtrl) Get(ctx iris.Context)

type SpecCtrl

type SpecCtrl struct {
}

func (*SpecCtrl) Parse

func (c *SpecCtrl) Parse(ctx iris.Context)

Parse 解析定义文件

Jump to

Keyboard shortcuts

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