proxy

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDetachedCmd added in v0.5.0

func GetDetachedCmd(name string, arg ...string) *exec.Cmd

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
	Update         bool
	Server         string
	Token          string
	Permissions    string
	Uds            bool
	EmitAllEvents  bool
	TickerDuration int
}

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