grpc

package
v2.0.0-...-98537dd Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnectionTimeout = 5 * time.Second
	RequestTimeout    = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func Connect

func Connect(ctx context.Context, session liveshareSession, token string) (*Client, error)

Finds a free port to listen on and creates a new gRPC client that connects to that port

func (*Client) Close

func (g *Client) Close() error

Closes the gRPC connection

func (*Client) StartJupyterServer

func (g *Client) StartJupyterServer(ctx context.Context) (port int, serverUrl string, err error)

Starts a remote JupyterLab server to allow the user to connect to the codespace via JupyterLab in their browser

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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