Documentation
¶
Index ¶
- Constants
- Variables
- func AddEmployee(w http.ResponseWriter, r *http.Request)
- func DeleteAllEmployees(w http.ResponseWriter, r *http.Request)
- func DeleteOneEmployee(w http.ResponseWriter, r *http.Request)
- func GetAllEmployee(w http.ResponseWriter, r *http.Request)
- func UpdateEmployee(w http.ResponseWriter, r *http.Request)
- func UserLogin(w http.ResponseWriter, r *http.Request)
- func UserSignup(w http.ResponseWriter, r *http.Request)
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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.