|
// GENERATED CODE - DO NOT EDIT
package main
import (
"flag"
"reflect"
"github.com/revel/revel"
_ "github.com/mattn/go-sqlite3"
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"
_ "github.com/revolvingcow/grassfed/app"
controllers "github.com/revolvingcow/grassfed/app/controllers"
tests "github.com/revolvingcow/grassfed/tests"
)
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.DatabaseController)(nil),
[]*revel.MethodType{
&revel.MethodType{
Name: "Begin",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "Commit",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "Rollback",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]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.RegisterController((*controllers.Application)(nil),
[]*revel.MethodType{
})
revel.RegisterController((*controllers.Home)(nil),
[]*revel.MethodType{
&revel.MethodType{
Name: "Index",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
31: []string{
},
},
},
&revel.MethodType{
Name: "About",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
35: []string{
},
},
},
&revel.MethodType{
Name: "Overview",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
},
},
})
revel.RegisterController((*controllers.Profile)(nil),
[]*revel.MethodType{
&revel.MethodType{
Name: "Index",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
273: []string{
"account",
},
},
},
&revel.MethodType{
Name: "Logon",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "id", Type: reflect.TypeOf((*string)(nil)) },
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "History",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "Stats",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "Trends",
Args: []*revel.MethodArg{
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "Add",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "product", Type: reflect.TypeOf((*string)(nil)) },
&revel.MethodArg{Name: "calories", Type: reflect.TypeOf((*int64)(nil)) },
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "Delete",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "id", Type: reflect.TypeOf((*int64)(nil)) },
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "Goal",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "calories", Type: reflect.TypeOf((*int64)(nil)) },
},
RenderArgNames: map[int][]string{
},
},
&revel.MethodType{
Name: "Weight",
Args: []*revel.MethodArg{
&revel.MethodArg{Name: "weight", Type: reflect.TypeOf((*float64)(nil)) },
},
RenderArgNames: map[int][]string{
},
},
})
revel.DefaultValidationKeys = map[string]map[int]string{
"github.com/revolvingcow/grassfed/app/controllers.Profile.Add": {
409: "product",
410: "calories",
},
"github.com/revolvingcow/grassfed/app/controllers.Profile.Logon": {
278: "id",
},
}
revel.TestSuites = []interface{}{
(*tests.AppTest)(nil),
}
revel.Run(*port)
}
|