manager

package
v1.29.0-alpha.148 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package manager xxx

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() error

	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

Jump to

Keyboard shortcuts

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