Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindWhereToEat ¶
func FindWhereToEat(params Params) httprouter.Handle
FindWhereToEat controller to get a random restaurant
Types ¶
type Jsonable ¶
type Jsonable interface {
ToJSON() (json.RawMessage, error)
}
Jsonable an entity that returns a JSON representation of itself
type Result ¶
type Result struct { Error *ResultError `json:"error,omitempty"` Result json.RawMessage `json:"result,omitempty"` }
Result the final result for a given message
type ResultError ¶
ResultError contains the error code and message
Click to show internal directories.
Click to hide internal directories.