Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseNOK ¶
ResponseNOK responses with given code and values, if code is between 400000 and 500000, it will log error and resp 500 to client otherwise, it will log info and resp 200 to client
func ResponseOK ¶
Types ¶
type ErrResponse ¶
func NewErrResponse ¶
func NewErrResponse(code int, message string) *ErrResponse
Click to show internal directories.
Click to hide internal directories.