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 tStatic struct {}
  22. var Static tStatic
  23. func (_ tStatic) Serve(
  24. prefix string,
  25. filepath string,
  26. ) string {
  27. args := make(map[string]string)
  28. revel.Unbind(args, "prefix", prefix)
  29. revel.Unbind(args, "filepath", filepath)
  30. return revel.MainRouter.Reverse("Static.Serve", args).Url
  31. }
  32. func (_ tStatic) ServeModule(
  33. moduleName string,
  34. prefix string,
  35. filepath string,
  36. ) string {
  37. args := make(map[string]string)
  38. revel.Unbind(args, "moduleName", moduleName)
  39. revel.Unbind(args, "prefix", prefix)
  40. revel.Unbind(args, "filepath", filepath)
  41. return revel.MainRouter.Reverse("Static.ServeModule", args).Url
  42. }
  43. type tTestRunner struct {}
  44. var TestRunner tTestRunner
  45. func (_ tTestRunner) Index(
  46. ) string {
  47. args := make(map[string]string)
  48. return revel.MainRouter.Reverse("TestRunner.Index", args).Url
  49. }
  50. func (_ tTestRunner) Run(
  51. suite string,
  52. test string,
  53. ) string {
  54. args := make(map[string]string)
  55. revel.Unbind(args, "suite", suite)
  56. revel.Unbind(args, "test", test)
  57. return revel.MainRouter.Reverse("TestRunner.Run", args).Url
  58. }
  59. func (_ tTestRunner) List(
  60. ) string {
  61. args := make(map[string]string)
  62. return revel.MainRouter.Reverse("TestRunner.List", args).Url
  63. }
  64. type tApplication struct {}
  65. var Application tApplication
  66. type tProfile struct {}
  67. var Profile tProfile
  68. func (_ tProfile) Index(
  69. ) string {
  70. args := make(map[string]string)
  71. return revel.MainRouter.Reverse("Profile.Index", args).Url
  72. }
  73. func (_ tProfile) Logon(
  74. id string,
  75. ) string {
  76. args := make(map[string]string)
  77. revel.Unbind(args, "id", id)
  78. return revel.MainRouter.Reverse("Profile.Logon", args).Url
  79. }
  80. func (_ tProfile) History(
  81. ) string {
  82. args := make(map[string]string)
  83. return revel.MainRouter.Reverse("Profile.History", args).Url
  84. }
  85. func (_ tProfile) Stats(
  86. ) string {
  87. args := make(map[string]string)
  88. return revel.MainRouter.Reverse("Profile.Stats", args).Url
  89. }
  90. func (_ tProfile) Add(
  91. product string,
  92. calories int64,
  93. ) string {
  94. args := make(map[string]string)
  95. revel.Unbind(args, "product", product)
  96. revel.Unbind(args, "calories", calories)
  97. return revel.MainRouter.Reverse("Profile.Add", args).Url
  98. }
  99. func (_ tProfile) Delete(
  100. id int64,
  101. ) string {
  102. args := make(map[string]string)
  103. revel.Unbind(args, "id", id)
  104. return revel.MainRouter.Reverse("Profile.Delete", args).Url
  105. }
  106. func (_ tProfile) Goal(
  107. calories int64,
  108. ) string {
  109. args := make(map[string]string)
  110. revel.Unbind(args, "calories", calories)
  111. return revel.MainRouter.Reverse("Profile.Goal", args).Url
  112. }
  113. type tHome struct {}
  114. var Home tHome
  115. func (_ tHome) Index(
  116. ) string {
  117. args := make(map[string]string)
  118. return revel.MainRouter.Reverse("Home.Index", args).Url
  119. }
  120. func (_ tHome) About(
  121. ) string {
  122. args := make(map[string]string)
  123. return revel.MainRouter.Reverse("Home.About", args).Url
  124. }
  125. func (_ tHome) Overview(
  126. ) string {
  127. args := make(map[string]string)
  128. return revel.MainRouter.Reverse("Home.Overview", args).Url
  129. }