Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsoleCopywritingFailed = []string{
"#######################################################################\r\n",
"# Welcome To BKDevOps Console #\r\n",
"# 该环境已经处于调试状态,禁止同时连接多个会话 #\r\n",
"#######################################################################\r\n",
}
ConsoleCopywritingFailed is a response string
Functions ¶
func ResponseJSON ¶
func ResponseJSON(w http.ResponseWriter, status int, v interface{}) error
ResponseJSON response to client
Types ¶
type Manager ¶
type Manager interface { //start Start() error //handler container web console StartExec(http.ResponseWriter, *http.Request, *types.WebSocketConfig) CreateExec(http.ResponseWriter, *http.Request, *types.WebSocketConfig) ResizeExec(http.ResponseWriter, *http.Request, *types.WebSocketConfig) }
Manager is an interface
func NewManager ¶
func NewManager(conf *config.ConsoleProxyConfig) Manager
NewManager create a Manager object
Click to show internal directories.
Click to hide internal directories.