Documentation ¶
Index ¶
- type App
- func (app *App) Close()
- func (app *App) Config() *Config
- func (app *App) ElectronAppPath() string
- func (app *App) ErrorBox(msg interface{})
- func (app *App) ErrorBoxLog(msg interface{})
- func (app *App) FatalBox(msg interface{})
- func (app *App) FatalBoxLog(msg interface{})
- func (app *App) InitLogger() error
- func (app *App) Launch(args []string)
- type AppInfo
- type AppPrev
- type Common
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Info AppInfo Prev AppPrev WinVersion win.Version ID string Name string Args []string RootPath string AppPath string DataPath string WorkingDir string Process string // contains filtered or unexported fields }
App represents an active app object
func NewWithCfg ¶
NewWithCfg creates new app instance with an app config
func (*App) ElectronAppPath ¶
ElectronAppPath returns the app electron path
func (*App) ErrorBox ¶
func (app *App) ErrorBox(msg interface{})
ErrorBox display an error message box
func (*App) ErrorBoxLog ¶
func (app *App) ErrorBoxLog(msg interface{})
ErrorBoxLog display an error message box nad log
func (*App) FatalBox ¶
func (app *App) FatalBox(msg interface{})
FatalBox display an error message box and exit
func (*App) FatalBoxLog ¶
func (app *App) FatalBoxLog(msg interface{})
FatalBoxLog display an error message box, log and exit
type AppInfo ¶
type AppInfo struct { ID string `json:"id"` GUID string `json:"guid"` Name string `json:"name"` Version string `json:"version"` Release string `json:"release"` Date string `json:"date"` Publisher string `json:"publisher"` URL string `json:"url"` PortappsVersion string `json:"portapps_version"` }
AppInfo represents portapp.json file structure
type AppPrev ¶
type AppPrev struct { Info AppInfo `json:"info"` WinVersion win.Version `json:"win_version"` RootPath string `json:"root_path"` AppPath string `json:"app_path"` DataPath string `json:"data_path"` }
AppPrev represents previous settings file structure
Click to show internal directories.
Click to hide internal directories.