feat: ws模块新增ssh和telnet类型连接
This commit is contained in:
@@ -12,9 +12,14 @@ type IWS interface {
|
||||
// UpgraderWs http升级ws请求
|
||||
UpgraderWs(w http.ResponseWriter, r *http.Request) *websocket.Conn
|
||||
|
||||
// NewClient 新建客户端 uid 登录用户ID
|
||||
NewClient(uid string, gids []string, conn *websocket.Conn) *model.WSClient
|
||||
// NewClient 新建客户端
|
||||
//
|
||||
// uid 登录用户ID
|
||||
// groupIDs 用户订阅组
|
||||
// conn ws连接实例
|
||||
// childConn 子连接实例
|
||||
NewClient(uid string, groupIDs []string, conn *websocket.Conn, childConn any) *model.WSClient
|
||||
|
||||
// CloseClient 客户端关闭
|
||||
// CloseClient 关闭客户端
|
||||
CloseClient(clientID string)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user