Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logrus.Logger
View Source
var NoError = Error{ Success: true, Code: 0, Message: "", }
Functions ¶
func Handle ¶
func Handle(method, url string, validRules Rules, handler HandleFunc)
Types ¶
type Context ¶
type Context struct {
Req *http.Request
Res http.ResponseWriter
QueryString map[string]string
PathParam map[string]string
Body *simplejson.Json
}
type DownloadFile ¶
type Error ¶
type HandleFunc ¶
Click to show internal directories.
Click to hide internal directories.