|
// GENERATED CODE - DO NOT EDIT
package main
import (
"flag"
"reflect"
"github.com/revel/revel"
_ "github.com/grassfed/app"
controllers "github.com/grassfed/app/controllers"
tests "github.com/grassfed/tests"
controllers1 "github.com/revel/revel/modules/static/app/controllers"
_ "github.com/revel/revel/modules/testrunner/app"
controllers0 "github.com/revel/revel/modules/testrunner/app/controllers"
)
var (
runMode *string = flag.String("runMode", "", "Run mode.")
port *int = flag.Int("port", 0, "By default, read from app.conf")
importPath *string = flag.String("importPath", "", "Go Import Path for the app.")
srcPath *string = flag.String("srcPath", "", "Path to the source root.")
// So compiler won't complain if the generated code doesn't reference reflect package...
_ = reflect.Invalid
)
func main() {
flag.Parse()
revel.Init(*runMode, *importPath, *srcPath)
revel.INFO.Println("Running revel server")
revel.RegisterController((*controllers.App)(nil),
[]*revel.MethodType{
&revel.MethodType{
Name: "Index",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
10: []string{
},
},
},
&revel.MethodType{
Name: "About",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
14: []string{
},
},
},
&revel.MethodType{
Name: "Me",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
18: []string{
},
},
},
&revel.MethodType{
Name: "Stats",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
22: []string{
},
},
},
&revel.MethodType{
Name: "Add",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "id", Type: reflect.TypeOf((*int)(nil)) },
&revel.MethodArg{Name: "product", Type: reflect.TypeOf((*string)(nil)) },
&revel.MethodArg{Name: "calories", Type: reflect.TypeOf((*int)(nil)) },
},
RenderArgNames: map[int][]string{
36: []string{
},
},
},
&revel.MethodType{
Name: "Goal",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
40: []string{
},
},
},
&revel.MethodType{
Name: "SetGoal",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
44: []string{
},
},
},
&revel.MethodType{
Name: "Streak",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
48: []string{
},
},
},
})
revel.RegisterController((*controllers0.TestRunner)(nil),
[]*revel.MethodType{
&revel.MethodType{
Name: "Index",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
46: []string{
"testSuites",
},
},
},
&revel.MethodType{
Name: "Run",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "suite", Type: reflect.TypeOf((*string)(nil)) },
&revel.MethodArg{Name: "test", Type: reflect.TypeOf((*string)(nil)) },
},
RenderArgNames: map[int][]string{
69: []string{
"error",
},
},
},
&revel.MethodType{
Name: "List",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
},
},
})
revel.RegisterController((*controllers1.Static)(nil),
[]*revel.MethodType{
&revel.MethodType{
Name: "Serve",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "prefix", Type: reflect.TypeOf((*string)(nil)) },
&revel.MethodArg{Name: "filepath", Type: reflect.TypeOf((*string)(nil)) },
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "ServeModule",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "moduleName", Type: reflect.TypeOf((*string)(nil)) },
&revel.MethodArg{Name: "prefix", Type: reflect.TypeOf((*string)(nil)) },
&revel.MethodArg{Name: "filepath", Type: reflect.TypeOf((*string)(nil)) },
},
RenderArgNames: map[int][]string{
},
},
})
revel.DefaultValidationKeys = map[string]map[int]string{
"github.com/grassfed/app/controllers.App.Add": {
26: "id",
27: "product",
28: "calories",
},
}
revel.TestSuites = []interface{}{
(*tests.AppTest)(nil),
}
revel.Run(*port)
}
|