launcher

package
v0.0.0-...-b87ce86 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExtension

func RegisterExtension(ext string, launcher Launcher)

func RegisterProtocol

func RegisterProtocol(scheme string, launcher Launcher)

Types

type Launcher

type Launcher interface {
	SetWorkDir(dir string)
	SetWindowTitle(title string)
	RunByFilename(filename string) error
	RunByURL(url string) error
	SetOptions(options *Options)
	Terminate()
	CheckPlatform() error
	UninstallByFilename(filename string, showGUI bool) error
	UninstallByURL(url string, showGUI bool) error
	SetLogFile(logFile string)
}

Launcher is a JNLP Launcher

func FindLauncherForExtension

func FindLauncherForExtension(path string) (Launcher, error)

func FindLauncherForURL

func FindLauncherForURL(rawurl string) (Launcher, error)

func FindLauncherForURLOrFilename

func FindLauncherForURLOrFilename(filenameOrURL string) (launcher Launcher, byURL bool, err error)

type Options

type Options struct {
	IsRunningFromBrowser          bool
	JavaDir                       string
	ShowConsole                   bool
	DisableVerification           bool
	DisableVerificationSameOrigin bool
}

Directories

Path Synopsis
Package jnlp provides data structures and ability for parsing JNLP files.
Package jnlp provides data structures and ability for parsing JNLP files.

Jump to

Keyboard shortcuts

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