Documentation ¶
Index ¶
Constants ¶
View Source
const REGISTER_CONTROLLERS = `` /* 1058-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
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.
type MethodSpec ¶
Click to show internal directories.
Click to hide internal directories.