controllers

package
v0.0.0-...-922beef Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CredcollectionName = "cred"
View Source
const CreddatabaseName = "Cred"
View Source
const EmployeecollectionName = "employee"
View Source
const EmployeedatabaseName = "Employee"

Variables

View Source
var CredCollection *mongo.Collection

make variable of mongoDB collection we gonna use it many times

View Source
var EmployeeCollection *mongo.Collection
View Source
var SECRET_KEY = []byte("123456")

Functions

func AddEmployee

func AddEmployee(w http.ResponseWriter, r *http.Request)

func DeleteAllEmployees

func DeleteAllEmployees(w http.ResponseWriter, r *http.Request)

func DeleteOneEmployee

func DeleteOneEmployee(w http.ResponseWriter, r *http.Request)

func GetAllEmployee

func GetAllEmployee(w http.ResponseWriter, r *http.Request)

func UpdateEmployee

func UpdateEmployee(w http.ResponseWriter, r *http.Request)

func UserLogin

func UserLogin(w http.ResponseWriter, r *http.Request)

func UserSignup

func UserSignup(w http.ResponseWriter, r *http.Request)

Controllers

Types

This section is empty.

Jump to

Keyboard shortcuts

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