feat: 去除 WebTerminal 的 websocket 依赖

This commit is contained in:
naiba
2024-07-14 12:48:10 +08:00
parent f02d1ee04e
commit 52f6cf5fdf
8 changed files with 205 additions and 90 deletions
+2 -8
View File
@@ -9,15 +9,9 @@ const (
TaskTypeTerminal
TaskTypeUpgrade
TaskTypeKeepalive
TaskTypeTerminalGRPC
)
type TerminalTask struct {
// websocket 主机名
Host string `json:"host,omitempty"`
// 是否启用 SSL
UseSSL bool `json:"use_ssl,omitempty"`
// 会话标识
Session string `json:"session,omitempty"`
// Agent在连接Server时需要的额外Cookie信息
Cookie string `json:"cookie,omitempty"`
StreamID string
}