app

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 24 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommon added in v0.35.0

func NewCommon(config config.AppConfigurer) (*common.Common, error)

func Run added in v0.35.0

func Run(config config.AppConfigurer, common *common.Common, startArgs types.StartArgs)

Types

type App

type App struct {
	*common.Common

	Config    config.AppConfigurer
	OSCommand *oscommands.OSCommand
	Gui       *gui.Gui
	Updater   *updates.Updater // may only need this on the Gui
	// contains filtered or unexported fields
}

App is the struct that's instantiated from within main.go and it manages bootstrapping and running the application.

func NewApp

func NewApp(config config.AppConfigurer, common *common.Common) (*App, error)

NewApp bootstrap a new application

func (*App) Close

func (app *App) Close() error

Close closes any resources

func (*App) Run added in v0.7.1

func (app *App) Run(startArgs types.StartArgs) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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