Versions in this module Expand all Collapse all v1 v1.1.1 Feb 25, 2018 Changes in this version type ErrorResponse + func Errorf(status int, format string, v ...interface{}) (int, *ErrorResponse) v1.1.0 Feb 24, 2018 Changes in this version + var ErrNoURLParam = fmt.Errorf("url param does not exist") + var NewLogger = func(r *http.Request) log.Interface + var Responder = render.JSON + func Body(r *http.Request, v interface{}) error + func Handler(h StatusHandlerFunc) http.HandlerFunc + func Logger(r *http.Request) log.Interface + func LoggerCtx(r *http.Request) (log.Interface, context.Context) + func LoggerMiddleware(next http.Handler) http.Handler + func MethodNotAllowed(w http.ResponseWriter, r *http.Request) + func NotFound(w http.ResponseWriter, r *http.Request) + func URLFloat(r *http.Request, key, validation string) (float64, error) + func URLInt(r *http.Request, key, validation string) (int, error) + func URLInt64(r *http.Request, key, validation string) (int64, error) + func URLUint(r *http.Request, key, validation string) (uint64, error) + type ErrorResponse struct + Code int + Err string + func Error(status int, err string) (int, *ErrorResponse) + func StatusError(status int) (int, *ErrorResponse) + func (e ErrorResponse) Error() string + type StatusHandlerFunc func(w http.ResponseWriter, r *http.Request) (int, interface{}) + type Validator interface + StructCtx func(context.Context, interface{}) error + VarCtx func(context.Context, interface{}, string) error + var NopValidator Validator = &nopValidator{} + var Validate Validator = validator.New()