Documentation ¶
Index ¶
- func BodyParse(s interface{}, w http.ResponseWriter, r *http.Request, isValidation bool) error
- func BodyParseValidation(s interface{}, w http.ResponseWriter, r *http.Request, isValidation bool) error
- func ComparePassword(hashedPassword, password string) error
- func GenerateUniqueNumber(length int) (string, error)
- func HashPassword(password string) (string, error)
- func OrderBy(queryValues map[string][]string) string
- func Paginate(req *http.Request, app *app.App, baseQuery, filterQuery string) (coreEntity.Pagination, int, int, error)
- func Pagination(req *http.Request, app *app.App, table string) (pagination coreEntity.Pagination, returnLimit int, returnOffset int, err error)
- func RawPagination(sqlQuery string, queryValues map[string][]string) string
- func Round(num float64, places int) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyParseValidation ¶
func ComparePassword ¶
func GenerateUniqueNumber ¶
func HashPassword ¶
func Paginate ¶
func Paginate(req *http.Request, app *app.App, baseQuery, filterQuery string) (coreEntity.Pagination, int, int, error)
func Pagination ¶
func Pagination(req *http.Request, app *app.App, table string) (pagination coreEntity.Pagination, returnLimit int, returnOffset int, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.