helper

package
v0.0.0-...-4b76107 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONNECTION_STRING = "mongodb://root:auth!@mongodb:27017"
	DB                = "db_authentication"
	USERS             = "users"
)

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB() *mongo.Database

func HashPassword

func HashPassword(password string, salt string) string

func Response

func Response(w http.ResponseWriter, code int, payload interface{})

func ResponseWithError

func ResponseWithError(w http.ResponseWriter, code int, msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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