server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSSH

func StartSSH(ctx context.Context, addr string, wg *sync.WaitGroup)

Types

type Client

type Client struct {
	*cmd.Term

	UserServer []*database.UserServer
	SSHClient  *SSHClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(userId string) *Client

func (*Client) AddServer

func (c *Client) AddServer()

func (*Client) ChangeServer

func (c *Client) ChangeServer(index string)

func (*Client) DelServer

func (c *Client) DelServer(index string)

func (*Client) GetServerByIndex

func (c *Client) GetServerByIndex(i int) *database.UserServer

func (*Client) HandleShell

func (c *Client) HandleShell(channel ssh.Channel)

func (*Client) Resize

func (c *Client) Resize(width, height int) error

func (*Client) ServerListTable

func (c *Client) ServerListTable() string

type SSHClient

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

Jump to

Keyboard shortcuts

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