Documentation ¶
Index ¶
- Variables
- func DeleteDocsByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func Encode(id string, privateKey string) (string, error)
- func GCFPostHandler(PASETOPRIVATEKEYENV, collectionname string, r *http.Request) string
- func GCFPostHandlerSignUp(collectionname string, r *http.Request) string
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privateKey, publicKey string)
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetLowonganFromID(_id primitive.ObjectID) (doc model.Lowongan, err error)
- func GetUserFromEmail(email string, db *mongo.Database, col string) (result model.User, err error)
- func GetUserFromID(_id primitive.ObjectID) (doc model.User, err error)
- func InsertOneDoc(db *mongo.Database, col string, doc interface{}) (insertedID primitive.ObjectID, err error)
- func LogIn(db *mongo.Database, col string, insertedDoc model.User) (email string, err error)
- func MongoConnect() *mongo.Database
- func SignUp(db *mongo.Database, col string, insertedDoc model.User) (insertedID primitive.ObjectID, err error)
- func UpdateOneDoc(db *mongo.Database, col string, id primitive.ObjectID, doc interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func DeleteDocsByID ¶
func GCFPostHandler ¶
func GCFPostHandlerSignUp ¶
func GCFReturnStruct ¶
func GenerateKey ¶
func GenerateKey() (privateKey, publicKey string)
func GetAllDocs ¶
func GetLowonganFromID ¶
func GetUserFromEmail ¶
func InsertOneDoc ¶
func MongoConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.