handlers

package
v0.0.0-...-9f65fc3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EscapeChar     byte = 0x14 // Ctrl+T
	HelpChar       byte = '?'
	QuitChar       byte = 'q'
	ConfigChar     byte = 'c'
	BreakChar      byte = 'b'
	DetectBaudChar byte = 'B'
	ClearChar      byte = 'l'
	CtrlTChar      byte = 't'
	VersionChar    byte = 'v'
	StatsChar      byte = 's'
	LocalEchoChar  byte = 'e'
	HexModeChar    byte = 'h'
	TimestampsChar byte = 'T'
)
View Source
const ClearSequence = "\033c"

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsDTO

type StatsDTO struct {
	Tx     int64 `json:"tx"`
	Rx     int64 `json:"rx"`
	TxRate int64 `json:"txRateBps"`
	RxRate int64 `json:"rxRateBps"`
}

type TtyHandler

type TtyHandler interface {
	io.Closer
	Run(errChan chan<- error)
	HandleDisconnect() error
	HandleReconnect() error
}

func NewPtyHandler

func NewPtyHandler(client *ws.Client, linkTo string) (tty TtyHandler, err error)

func NewStdFdsHandler

func NewStdFdsHandler(client *ws.Client, implementation ttyc.Implementation, credentials *url.Userinfo, server string) (tty TtyHandler, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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