An abstraction around the source and executable for a Go application.
def google.appengine.tools.devappserver2.go_application.GoApplication.__init__ |
( |
|
self, |
|
|
|
module_configuration |
|
) |
| |
Initializer for Module.
Args:
module_configuration: An application_configuration.ModuleConfiguration
instance storing the configuration data for a module.
def google.appengine.tools.devappserver2.go_application.GoApplication.get_environment |
( |
|
self | ) |
|
Return the environment that used be used to run the Go executable.
def google.appengine.tools.devappserver2.go_application.GoApplication.go_executable |
( |
|
self | ) |
|
The path to the Go executable. None if it has not been built.
def google.appengine.tools.devappserver2.go_application.GoApplication.maybe_build |
( |
|
self, |
|
|
|
maybe_modified_since_last_build |
|
) |
| |
Builds an executable for the application if necessary.
Args:
maybe_modified_since_last_build: True if any files in the application root
or the GOPATH have changed since the last call to maybe_build, False
otherwise. This argument is used to decide whether a build is Required
or not.
Returns:
True if compilation was successfully performed (will raise
an exception if compilation was attempted but failed).
False if compilation was not attempted.
Raises:
BuildError: if building the executable fails for any reason.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/devappserver2/go_application.py