Documentation ¶
Index ¶
- func GetLimitOffsetFromHttpReq(req *http.Request) types.DBLimitOffset
- func GetPagination(totalRows, pageNumber uint64) types.Pagination
- func NewError(code int, text string) error
- func NewErrorf(code int, format string, a ...interface{}) error
- func ReadAll(rc io.ReadCloser) ([]byte, error)
- func SendJSON(resp http.ResponseWriter, obj interface{})
- type ClosingBuffer
- type CodeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLimitOffsetFromHttpReq ¶
func GetLimitOffsetFromHttpReq(req *http.Request) types.DBLimitOffset
func GetPagination ¶
func GetPagination(totalRows, pageNumber uint64) types.Pagination
func SendJSON ¶
func SendJSON(resp http.ResponseWriter, obj interface{})
Types ¶
type ClosingBuffer ¶
func (*ClosingBuffer) Close ¶
func (cb *ClosingBuffer) Close() error
Click to show internal directories.
Click to hide internal directories.