helper

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func GetAllBangunanLineString

func GetAllBangunanLineString(mongoconn *mongo.Database, collection string) []models.GeoJson

func HashPassword

func HashPassword(password string) (string, error)

func IsPasswordValid

func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata models.User) bool

func Json

func Json(DataStuct any) string

func SetConnection

func SetConnection(mongostring, dbname string) *mongo.Database

Types

This section is empty.

Jump to

Keyboard shortcuts

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