launcherclient

package
v0.0.0-...-147f0cf Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LauncherClient

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

LauncherClient is a marshaller for service messages using a provided hub connection. This uses the default serializer to marshal and unmarshal messages.

func NewLauncherClient

func NewLauncherClient(launcherID string, hc *hubclient.HubClient) *LauncherClient

NewLauncherClient returns a launcher service client

launcherID is the optional ID of the launcher to use. Default is 'launcher'
hc is the hub client connection to use.

func (*LauncherClient) List

func (cl *LauncherClient) List(onlyRunning bool) ([]launcherapi.PluginInfo, error)

List services

func (*LauncherClient) Start

func (cl *LauncherClient) Start() error

Start cannot start remotely

func (*LauncherClient) StartAllPlugins

func (cl *LauncherClient) StartAllPlugins() error

StartAllPlugins starts all enabled plugins This returns the error from the last service that could not be started

func (*LauncherClient) StartPlugin

func (cl *LauncherClient) StartPlugin(name string) (launcherapi.PluginInfo, error)

StartPlugin requests to start a plugin

func (*LauncherClient) Stop

func (cl *LauncherClient) Stop() error

Stop cannot stop remotely

func (*LauncherClient) StopAllPlugins

func (cl *LauncherClient) StopAllPlugins() error

StopAllPlugins stops running plugins

func (*LauncherClient) StopPlugin

func (cl *LauncherClient) StopPlugin(name string) (launcherapi.PluginInfo, error)

StopPlugin stops a running plugin

Jump to

Keyboard shortcuts

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