client

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostClient

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

func NewHostClient

func NewHostClient(wsURL string) *HostClient

func (*HostClient) Call

func (hc *HostClient) Call(ctx context.Context, action string, payload interface{}) *json.RawMessage

func (*HostClient) CallAndForget

func (hc *HostClient) CallAndForget(action string, payload interface{})

func (*HostClient) Close added in v0.3.0

func (hc *HostClient) Close()

func (*HostClient) CloseAppClients added in v0.3.0

func (hc *HostClient) CloseAppClients(pageName string)

func (*HostClient) PageNewSessions

func (hc *HostClient) PageNewSessions(pageName string) chan string

func (*HostClient) RegisterPage added in v0.4.2

func (*HostClient) RegisterPipeClient

func (hc *HostClient) RegisterPipeClient(pc *PipeClient) error

func (*HostClient) Start

func (hc *HostClient) Start() (err error)

func (*HostClient) UnregisterPipeClient

func (hc *HostClient) UnregisterPipeClient(pc *PipeClient)

type PageRegistration added in v0.4.2

type PageRegistration struct {
	RegistrationRequest *page.RegisterHostClientRequestPayload
	Sessions            map[string]map[*PipeClient]bool
}

type PipeClient

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

func NewPipeClient

func NewPipeClient(pageName string, sessionID string, hc *HostClient, uds bool, emitAllEvents bool, tickerDuration int) (*PipeClient, error)

func (*PipeClient) CommandPipeName

func (pc *PipeClient) CommandPipeName() string

func (*PipeClient) Start

func (pc *PipeClient) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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