client

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 15 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 wraps a websocket client connection to iTerm2. Must be instantiated with NewClient.

func New

func New(appName string) (*Client, error)

New returns a new websocket connection that talks to the iTerm2 application.New Callers must call the Close() method when done. The cookie parameter is optional. If provided, it will bypass script authentication prompts.

func (*Client) Call

Call sends a request to the iTerm2 server

func (*Client) Close

func (c *Client) Close() error

Close closes the websocket connection and frees any goroutine resources

Jump to

Keyboard shortcuts

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