Documentation ¶ Index ¶ type Json func (r Json) Respond(responseWriter http.ResponseWriter) error type Request type Response type Text func (r Text) Respond(responseWriter http.ResponseWriter) error type View func (v View) Respond(responseWriter http.ResponseWriter) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Json ¶ type Json struct { Data interface{} } func (Json) Respond ¶ func (r Json) Respond(responseWriter http.ResponseWriter) error type Request ¶ type Request struct { *http.Request Params httprouter.Params } type Response ¶ type Response interface { Respond(http.ResponseWriter) error } type Text ¶ type Text struct { Message string } func (Text) Respond ¶ func (r Text) Respond(responseWriter http.ResponseWriter) error type View ¶ type View struct { Name string Model interface{} } func (View) Respond ¶ func (v View) Respond(responseWriter http.ResponseWriter) error Source Files ¶ View all Source files json.go request.go response.go text.go view.go Click to show internal directories. Click to hide internal directories.