proxy

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, wg *sync.WaitGroup)

Types

type Client

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

func (*Client) ConnectAppPage

func (proxy *Client) ConnectAppPage(ctx context.Context, args *ConnectPageArgs) (results *ConnectPageResults, err error)

func (*Client) ConnectSharedPage

func (proxy *Client) ConnectSharedPage(ctx context.Context, args *ConnectPageArgs) (results *ConnectPageResults, err error)

func (*Client) Start

func (proxy *Client) Start()

func (*Client) WaitAppSession

func (proxy *Client) WaitAppSession(ctx context.Context, args *ConnectPageArgs) (results *ConnectPageResults, err error)

type ConnectPageArgs

type ConnectPageArgs struct {
	PageName string
	Web      bool
	Server   string
	Token    string
	Uds      bool
}

type ConnectPageResults

type ConnectPageResults struct {
	PipeName string
	PageName string
	PageURL  string
}

type Service

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

Service manages connections to a shared page or app.

func (*Service) ConnectAppPage

func (ps *Service) ConnectAppPage(ctx context.Context, args *ConnectPageArgs, results *ConnectPageResults) error

ConnectAppPage waits for new web clients connecting specified page, creates a new session and returns file name of control pipe.

func (*Service) ConnectSharedPage

func (ps *Service) ConnectSharedPage(ctx context.Context, args *ConnectPageArgs, results *ConnectPageResults) error

ConnectSharedPage establishes a new connection to the specified shared page and returns file name of control pipe.

func (*Service) WaitAppSession

func (ps *Service) WaitAppSession(ctx context.Context, args *ConnectPageArgs, results *ConnectPageResults) error

Jump to

Keyboard shortcuts

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