Documentation ¶
Index ¶
- Constants
- Variables
- func ConnectionHandler(command string) http.Handler
- func ContentPathHandler(contentpath string, next http.Handler) http.Handler
- func GetMethodHandler(next http.Handler) http.Handler
- func HTMLDirHandler() http.Handler
- func LoggingHandler(next http.Handler) http.Handler
- func LoginHandler(username, password string) http.Handler
- func VerifyHandler(username, password string, next http.Handler) http.Handler
- type PipeLine
- type WebShellServer
Constants ¶
View Source
const Server = "web-shell-" + Version
Server Response header[Server]
View Source
const Version = "1.0"
Version WebShell Server current version
Variables ¶
View Source
var StaticHandler http.Handler
StaticHandler reserved for static_gen.go
Functions ¶
func ConnectionHandler ¶
ConnectionHandler Make websocket and childprocess communicate
func ContentPathHandler ¶
ContentPathHandler content path prefix
func GetMethodHandler ¶
GetMethodHandler Only allow GET requests
func LoginHandler ¶
LoginHandler Login interface
Types ¶
type PipeLine ¶
type PipeLine struct {
// contains filtered or unexported fields
}
PipeLine Connect websocket and childprocess
func NewPipeLine ¶
NewPipeLine Malloc PipeLine
func (*PipeLine) ReadPtyAndWriteSkt ¶
ReadPtyAndWriteSkt read pty and write skt
func (*PipeLine) ReadSktAndWritePty ¶
ReadSktAndWritePty read skt and write pty
type WebShellServer ¶
WebShellServer Main Server
func (*WebShellServer) Init ¶
func (s *WebShellServer) Init(Username, Password, Command, ContentPath string)
Init WebShell. register handlers
func (*WebShellServer) Run ¶
func (s *WebShellServer) Run(https bool, port, crt, key, rootcrt string)
Run WebShell server
Click to show internal directories.
Click to hide internal directories.