utilQuery

package
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BodyParse

func BodyParse(s interface{}, w http.ResponseWriter, r *http.Request, isValidation bool) error

func BodyParseValidation

func BodyParseValidation(s interface{}, w http.ResponseWriter, r *http.Request, isValidation bool) error

func ComparePassword

func ComparePassword(hashedPassword, password string) error

func GenerateUniqueNumber

func GenerateUniqueNumber(length int) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

func OrderBy

func OrderBy(queryValues map[string][]string) string

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)

func RawPagination

func RawPagination(sqlQuery string, queryValues map[string][]string) string

func Round

func Round(num float64, places int) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL