ws

package
v0.0.13-rc11-z5nctl4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

Connection ...

func Constructor

func Constructor(resp http.ResponseWriter, req *http.Request) (wsConn *Connection, err error)

Constructor ...

func (*Connection) WsClose

func (wsConn *Connection) WsClose()

WsClose ...

func (*Connection) WsRead

func (wsConn *Connection) WsRead() (msg *Message, err error)

WsRead ...

func (*Connection) WsWrite

func (wsConn *Connection) WsWrite(messageType int, data []byte) (err error)

WsWrite ...

type Message

type Message struct {
	MessageType int
	Data        []byte
}

Message ...

type StreamHandler

type StreamHandler struct {
	WsConn      *Connection
	ResizeEvent chan remotecommand.TerminalSize
}

StreamHandler ...

func (*StreamHandler) Next

func (handler *StreamHandler) Next() (size *remotecommand.TerminalSize)

Next ...

func (*StreamHandler) Read

func (handler *StreamHandler) Read(p []byte) (size int, err error)

func (*StreamHandler) Write

func (handler *StreamHandler) Write(p []byte) (size int, err error)

Jump to

Keyboard shortcuts

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