Documentation ¶
Index ¶
- Variables
- func BadRequestError(c context.Context, w http.ResponseWriter, err error)
- func BadRequestMessage(c context.Context, w http.ResponseWriter, m string)
- func ErrorAsJson(c context.Context, w http.ResponseWriter, status int, err error)
- func InitApi(router *httprouter.Router)
- func InternalError(c context.Context, w http.ResponseWriter, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoToken = errors.New("No authorization token")
Functions ¶
func BadRequestError ¶
func BadRequestError(c context.Context, w http.ResponseWriter, err error)
func BadRequestMessage ¶
func BadRequestMessage(c context.Context, w http.ResponseWriter, m string)
func ErrorAsJson ¶
func InitApi ¶
func InitApi(router *httprouter.Router)
func InternalError ¶
func InternalError(c context.Context, w http.ResponseWriter, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.