Documentation ¶
Index ¶
Constants ¶
View Source
const REGISTER_CONTROLLERS = `` /* 1176-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build() (binaryPath string, compileError *rev.Error)
Build the app: 1. Generate the the main.go file. 2. Run the appropriate "go build" command. Requires that rev.Init has been called previously. Returns the path to the built binary, and an error if there was a problem building it.
Types ¶
type ControllerSpec ¶
type ControllerSpec struct { PackageName string StructName string ImportPath string MethodSpecs []*MethodSpec // contains filtered or unexported fields }
func ScanControllers ¶
func ScanControllers(path string) (specs []*ControllerSpec, compileError *rev.Error)
Parse the app directory and return a list of the controller types found. Returns a CompileError if the parsing fails.
func (*ControllerSpec) SimpleName ¶
func (s *ControllerSpec) SimpleName() string
type Harness ¶
type Harness struct {
// contains filtered or unexported fields
}
Harness reverse proxies requests to the application server. It builds / runs / rebuilds / restarts the server when code is changed.
func NewHarness ¶
func NewHarness() *Harness
Return a reverse proxy that forwards requests to the given port.
func (*Harness) Refresh ¶
func (h *Harness) Refresh() *rev.Error
Rebuild the Revel application and run it on the given port.
type MethodSpec ¶
Click to show internal directories.
Click to hide internal directories.