websocket

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerminalSession

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

TerminalSession implements PtyHandler

func NewTerminalSession

func NewTerminalSession(w http.ResponseWriter, r *http.Request, responseHeader http.Header) (*TerminalSession, error)

NewTerminalSession create TerminalSession

func (*TerminalSession) Close

func (t *TerminalSession) Close() error

Close close session

func (*TerminalSession) Next

Next called in a loop from remotecommand as long as the process is running doneChan is closed when the process exits, otherwise it may block

func (*TerminalSession) Read

func (t *TerminalSession) Read(p []byte) (int, error)

Read called in a loop from remotecommand as long as the process is running

func (*TerminalSession) Stderr

func (t *TerminalSession) Stderr() io.Writer

Stderr ...

func (*TerminalSession) Stdin

func (t *TerminalSession) Stdin() io.Reader

Stdin ...

func (*TerminalSession) Stdout

func (t *TerminalSession) Stdout() io.Writer

Stdout ...

func (*TerminalSession) Tty

func (t *TerminalSession) Tty() bool

Tty ...

func (*TerminalSession) Write

func (t *TerminalSession) Write(p []byte) (int, error)

Write called from remotecommand whenever there is any output

Jump to

Keyboard shortcuts

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