ws

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSHClient

func NewSSHClient(u *url.URL, config *ssh.ClientConfig, isUptermClient bool) (*ssh.Client, error)

NewSSHClient creates a ssh client via ws. The url must include username as session id and password as encoded node address. isUptermClient indicates whehter the client is host client or client client.

func NewWSConn

func NewWSConn(u *url.URL, isUptermClient bool) (net.Conn, error)

NewWSConn creates a ws net.Conn. The url must include username as session id and password as encoded node address. isUptermClient indicates whehter the client is host client or client client.

func WrapWSConn

func WrapWSConn(ws *websocket.Conn) net.Conn

Types

This section is empty.

Jump to

Keyboard shortcuts

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