websh

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWebshConnection

func CreateWebshConnection(ac *client.AlpaconClient, serverName string, root bool) error

Types

type SessionRequest

type SessionRequest struct {
	Rows   int    `json:"rows"`
	Cols   int    `json:"cols"`
	Server string `json:"server"` // server id
	Root   bool   `json:"root"`
}

type SessionResponse

type SessionResponse struct {
	ID           string `json:"id"`
	Rows         int    `json:"rows"`
	Cols         int    `json:"cols"`
	Server       string `json:"server"`
	User         string `json:"user"`
	Root         bool   `json:"root"`
	UserAgent    string `json:"user_agent"`
	RemoteIP     string `json:"remote_ip"`
	WebsocketURL string `json:"websocket_url"`
}

Jump to

Keyboard shortcuts

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