Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultController ¶
type DefaultController struct { Sev *services.DefaultService Runtime freedom.Runtime }
func (*DefaultController) Get ¶
func (c *DefaultController) Get() (result struct { IP string UA string }, e error)
Get handles the GET: / route.
func (*DefaultController) GetAgeByUserBy ¶
func (c *DefaultController) GetAgeByUserBy(age int, user string) (result struct { User string Age int }, e error)
GetAgeByUserBy handles the GET: /age/{age:int}/user/{user:string} route.
func (*DefaultController) GetHello ¶
func (c *DefaultController) GetHello() string
GetHello handles the GET: /hello route.
func (*DefaultController) GetUserBy ¶
func (c *DefaultController) GetUserBy(username string) string
GetUserBy handles the GET: /user/{username:string} route.
Click to show internal directories.
Click to hide internal directories.