websocket

package
v0.4.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMessage

func ReadMessage(ctx context.Context, con *websocket.Conn, closeSession func(), wait func() error, stop chan bool) error

Types

type BinaryWriter

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

func NewWriter

func NewWriter(con *websocket.Conn) *BinaryWriter

func (*BinaryWriter) Write

func (s *BinaryWriter) Write(p []byte) (int, error)

type TerminalReader

type TerminalReader struct {
	ClosedCh chan bool
	// contains filtered or unexported fields
}

func NewReader

func NewReader(con *websocket.Conn) *TerminalReader

func (*TerminalReader) Read

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

func (*TerminalReader) SetResizeFunction

func (t *TerminalReader) SetResizeFunction(resizeFun func(size *WindowSize))

type WindowSize

type WindowSize struct {
	Width  int
	Height int
}

Jump to

Keyboard shortcuts

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