Calorie counting web application written in the Go language

routes.go 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. // GENERATED CODE - DO NOT EDIT
  2. package routes
  3. import "github.com/revel/revel"
  4. type tDatabaseController struct {}
  5. var DatabaseController tDatabaseController
  6. func (_ tDatabaseController) Begin(
  7. ) string {
  8. args := make(map[string]string)
  9. return revel.MainRouter.Reverse("DatabaseController.Begin", args).Url
  10. }
  11. func (_ tDatabaseController) Commit(
  12. ) string {
  13. args := make(map[string]string)
  14. return revel.MainRouter.Reverse("DatabaseController.Commit", args).Url
  15. }
  16. func (_ tDatabaseController) Rollback(
  17. ) string {
  18. args := make(map[string]string)
  19. return revel.MainRouter.Reverse("DatabaseController.Rollback", args).Url
  20. }
  21. type tTestRunner struct {}
  22. var TestRunner tTestRunner
  23. func (_ tTestRunner) Index(
  24. ) string {
  25. args := make(map[string]string)
  26. return revel.MainRouter.Reverse("TestRunner.Index", args).Url
  27. }
  28. func (_ tTestRunner) Run(
  29. suite string,
  30. test string,
  31. ) string {
  32. args := make(map[string]string)
  33. revel.Unbind(args, "suite", suite)
  34. revel.Unbind(args, "test", test)
  35. return revel.MainRouter.Reverse("TestRunner.Run", args).Url
  36. }
  37. func (_ tTestRunner) List(
  38. ) string {
  39. args := make(map[string]string)
  40. return revel.MainRouter.Reverse("TestRunner.List", args).Url
  41. }
  42. type tStatic struct {}
  43. var Static tStatic
  44. func (_ tStatic) Serve(
  45. prefix string,
  46. filepath string,
  47. ) string {
  48. args := make(map[string]string)
  49. revel.Unbind(args, "prefix", prefix)
  50. revel.Unbind(args, "filepath", filepath)
  51. return revel.MainRouter.Reverse("Static.Serve", args).Url
  52. }
  53. func (_ tStatic) ServeModule(
  54. moduleName string,
  55. prefix string,
  56. filepath string,
  57. ) string {
  58. args := make(map[string]string)
  59. revel.Unbind(args, "moduleName", moduleName)
  60. revel.Unbind(args, "prefix", prefix)
  61. revel.Unbind(args, "filepath", filepath)
  62. return revel.MainRouter.Reverse("Static.ServeModule", args).Url
  63. }
  64. type tApplication struct {}
  65. var Application tApplication
  66. type tHome struct {}
  67. var Home tHome
  68. func (_ tHome) Index(
  69. ) string {
  70. args := make(map[string]string)
  71. return revel.MainRouter.Reverse("Home.Index", args).Url
  72. }
  73. func (_ tHome) About(
  74. ) string {
  75. args := make(map[string]string)
  76. return revel.MainRouter.Reverse("Home.About", args).Url
  77. }
  78. func (_ tHome) Overview(
  79. ) string {
  80. args := make(map[string]string)
  81. return revel.MainRouter.Reverse("Home.Overview", args).Url
  82. }
  83. type tProfile struct {}
  84. var Profile tProfile
  85. func (_ tProfile) Index(
  86. ) string {
  87. args := make(map[string]string)
  88. return revel.MainRouter.Reverse("Profile.Index", args).Url
  89. }
  90. func (_ tProfile) Logon(
  91. id string,
  92. ) string {
  93. args := make(map[string]string)
  94. revel.Unbind(args, "id", id)
  95. return revel.MainRouter.Reverse("Profile.Logon", args).Url
  96. }
  97. func (_ tProfile) History(
  98. ) string {
  99. args := make(map[string]string)
  100. return revel.MainRouter.Reverse("Profile.History", args).Url
  101. }
  102. func (_ tProfile) Stats(
  103. ) string {
  104. args := make(map[string]string)
  105. return revel.MainRouter.Reverse("Profile.Stats", args).Url
  106. }
  107. func (_ tProfile) Add(
  108. product string,
  109. calories int64,
  110. ) string {
  111. args := make(map[string]string)
  112. revel.Unbind(args, "product", product)
  113. revel.Unbind(args, "calories", calories)
  114. return revel.MainRouter.Reverse("Profile.Add", args).Url
  115. }
  116. func (_ tProfile) Delete(
  117. id int64,
  118. ) string {
  119. args := make(map[string]string)
  120. revel.Unbind(args, "id", id)
  121. return revel.MainRouter.Reverse("Profile.Delete", args).Url
  122. }
  123. func (_ tProfile) Goal(
  124. calories int64,
  125. ) string {
  126. args := make(map[string]string)
  127. revel.Unbind(args, "calories", calories)
  128. return revel.MainRouter.Reverse("Profile.Goal", args).Url
  129. }