Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
An application handles the running, updating, and archiving of a user's software. Each application folder has this structure:
myapplication # A top-level directory, conceptually an "Application" └── archive # Old releases └── current └── foo.exe # Exactly one executable file └── any.txt # Other resources for foo.exe, ignored by gexe └── any.dat └── release # Contents of a new release └── command # Files that appear here are interpreted as commands to gexe
func NewApplication ¶
func NewApplication(dir string) (*Application, error)
Construct a new Application based on the given directory (see godoc for Application struct).
func (*Application) BinaryPath ¶
func (app *Application) BinaryPath() string
Get the path (on local disk) of this application's binary.
func (*Application) Loop ¶
func (app *Application) Loop()
Main control flow for an active application. The only way to leave this loop is if the program is terminated by the OS.
func (*Application) Name ¶
func (app *Application) Name() string
Get the human friendly name for this application.
Click to show internal directories.
Click to hide internal directories.