pty

package
v0.0.0-...-77baf9d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Type MsgType
	Data json.RawMessage
}

type MsgType

type MsgType int
const (
	MsgTypeInit MsgType = iota
	TypeData
	TypeResize
	TypePing
)

type Pipeline

type Pipeline struct {
	Pty *os.File
	// contains filtered or unexported fields
}

func NewPipeLine

func NewPipeLine(conn *websocket.Conn) (p *Pipeline, err error)

func (*Pipeline) ReadPtyAndWriteWs

func (p *Pipeline) ReadPtyAndWriteWs(errorChan chan error)

func (*Pipeline) ReadWsAndWritePty

func (p *Pipeline) ReadWsAndWritePty(errorChan chan error)

Jump to

Keyboard shortcuts

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