terminalws

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint

func Endpoint(baseURL string) (string, error)

Types

type Client

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

func Dial

func Dial(ctx context.Context, endpoint string, sessionID string, options Options) (*Client, error)

func (*Client) Attach

func (c *Client) Attach(ctx context.Context, terminal io.ReadWriter, resizes <-chan Size) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) Resize

func (c *Client) Resize(ctx context.Context, size Size) error

func (*Client) SendInput

func (c *Client) SendInput(ctx context.Context, payload []byte) error

type HandshakeStatusError added in v0.2.1

type HandshakeStatusError struct {
	StatusCode int
	Status     string
	Body       string
}

func (*HandshakeStatusError) Error added in v0.2.1

func (e *HandshakeStatusError) Error() string

type Options

type Options struct {
	Header http.Header
	Cols   uint32
	Rows   uint32
}

type Size

type Size struct {
	Cols uint32
	Rows uint32
}

Jump to

Keyboard shortcuts

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