App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.tools.devappserver2.go_application.GoApplication Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.go_application.GoApplication:

Public Member Functions

def __init__
 
def go_executable
 
def get_environment
 
def maybe_build
 

Detailed Description

An abstraction around the source and executable for a Go application.

Constructor & Destructor Documentation

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.

Member Function Documentation

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: