client

package
v0.0.0-...-912cea7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is used to communicate with ssh-chat or other ssh-sessions

func CreateClient

func CreateClient(destination, username string) (*Client, error)

CreateClient establishes a connections with the destination as the given username

func (*Client) Close

func (c *Client) Close() error

Close disconnects the client

func (*Client) ScanLine

func (c *Client) ScanLine() (string, error)

ScanLine reads the connection till the next new line

func (*Client) WriteLine

func (c *Client) WriteLine(line string) error

WriteLine send the given line to ssh-chat

Jump to

Keyboard shortcuts

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