Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func GCFHandler(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetAllUser(db *mongo.Database, col string) (userlist []model.User)
- func GetTicketFromID(db *mongo.Database, col string, id primitive.ObjectID) (ticket model.Ticket)
- func GetTicketList(db *mongo.Database, col string) (ticketlist model.TicketList)
- func GetUserFromUsername(db *mongo.Database, col string, username string) (user model.User)
- func HashPassword(password string) (string, error)
- func InsertOneDoc(db *mongo.Database, col string, docs interface{}) (insertedID primitive.ObjectID, err error)
- func InsertTicket(db *mongo.Database, col string, ticket model.Ticket) (insertedID primitive.ObjectID, err error)
- func InsertUser(db *mongo.Database, col string, userdata model.User) (insertedID primitive.ObjectID, err error)
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata model.User) bool
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GCFHandler ¶
func GCFPostHandler ¶
func GCFReturnStruct ¶
func GetAllDocs ¶
func GetTicketFromID ¶
func GetTicketList ¶
func GetTicketList(db *mongo.Database, col string) (ticketlist model.TicketList)
func GetUserFromUsername ¶
func HashPassword ¶
func InsertOneDoc ¶
func InsertTicket ¶
func InsertTicket(db *mongo.Database, col string, ticket model.Ticket) (insertedID primitive.ObjectID, err error)
ticket
func InsertUser ¶
func InsertUser(db *mongo.Database, col string, userdata model.User) (insertedID primitive.ObjectID, err error)
user
func IsPasswordValid ¶
func SetConnection ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.