server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Shells = []string{"bash", "sh"}

Functions

func FindCmd

func FindCmd() (cmd string)

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port int) (s *Server)

func (*Server) Close

func (s *Server) Close() (err error)

func (*Server) HandleWebsocket

func (s *Server) HandleWebsocket(rw http.ResponseWriter, r *http.Request)

func (*Server) Serve

func (s *Server) Serve() (err error)

func (*Server) Write

func (s *Server) Write(buff []byte) (n int, err error)

Jump to

Keyboard shortcuts

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