http

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Unknown message type, maybe send by a bug
	UnknownInput = '0'
	// User input typically from a keyboard
	Input = '1'
	// Ping to the server
	Ping = '2'
	// Notify that the brower size has been changed
	ResizeTerminal = '3'
)
View Source
const (
	// Unknown message type, maybe set by a bug
	UnknownOutput = '0'
	// Normal output to the terminal
	Output = '1'
	// Pong to the brower
	Pong = '2'
	// Set window title of the terminal
	SetWindowTitle = '3'
	// Set terminal preference
	SetPreferences = '4'
	// Make terminal to reconnect
	SetReconnect = '5'
)

Variables

View Source
var Protocols = []string{"webtty"}

Protocols defines the name of this protocol, which is supposed to be used to the subprotocol of Websocket streams.

Functions

func GenSigned

func GenSigned(server *config.Server) (string, error)

func Setup

func Setup(r *mux.Router)

Types

type Extractor

type Extractor []string

copy from ng-common/client-common/lib/http/auth.go

func (Extractor) ExtractToken

func (e Extractor) ExtractToken(r *http.Request) (string, error)

type WebSshClient

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

func NewWebSshClient

func NewWebSshClient(sshConfig *config.SshConfig, wswConn *wsWrapper) (*WebSshClient, error)

func (*WebSshClient) Run

func (wsc *WebSshClient) Run() error

Jump to

Keyboard shortcuts

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