Versions in this module Expand all Collapse all v1 v1.0.0 Nov 18, 2023 Changes in this version + func AuthenticateUserAndGenerateToken(privateKeyEnv string, mongoconn *mongo.Database, collection string, ...) (string, error) + func CheckPasswordHash(password, hash string) bool + func CreateComment(mongoconn *mongo.Database, collection string, commentdata Comment) interface + func CreateLogin(mongoconn *mongo.Database, collection string, userdata User) interface + func CreateNewBlog(mongoconn *mongo.Database, collection string, blogdata Blog) interface + func CreateNewContent(mongoconn *mongo.Database, collection string, contentdata Content) interface + func CreateNewProduct(mongoconn *mongo.Database, collection string, productdata Product) interface + func CreateNewUserRole(mongoconn *mongo.Database, collection string, userdata User) interface + func CreateUser(mongoconn *mongo.Database, collection string, userdata User) interface + func CreateUserAndAddToken(privateKeyEnv string, mongoconn *mongo.Database, collection string, ...) error + func CreateUserAndAddedToeken(PASETOPRIVATEKEYENV string, mongoconn *mongo.Database, collection string, ...) interface + func DeleteComment(mongoconn *mongo.Database, collection string, commentdata Comment) interface + func DeleteContent(mongoconn *mongo.Database, collection string, contentdata Content) interface + func DeleteLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface + func DeleteUser(mongoconn *mongo.Database, collection string, userdata User) interface + func GCFCreateAccountAndToken(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string + func GCFCreateContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFCreateHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFCreateHandlerTokenPaseto(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string + func GCFCreateLineStringgg(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFCreateNewBlog(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFCreatePolygone(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFCreatePolygonee(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFCreatePostLineString(MONGOCONNSTRINGENV, dbname, collection string, r *http.Request) string + func GCFCreatePostLineStringg(MONGOCONNSTRINGENV, dbname, collection string, r *http.Request) string + func GCFCreateTokenAndSaveToDB(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) (string, error) + func GCFCreteCommnet(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFCreteRegister(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFDeleteHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFDeleteHandlerContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFDeleteLineString(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFDeletedCommnet(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFFindBlogAllID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFFindContentAllID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFFindUserByID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFFindUserByName(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFGetAllBlog(MONGOCONNSTRINGENV, dbname, collectionname string) string + func GCFGetAllComment(MONGOCONNSTRINGENV, dbname, collectionname string) string + func GCFGetAllContentBy(MONGOCONNSTRINGENV, dbname, collectionname string) string + func GCFGetAllProduct(MONGOCONNSTRINGENV, dbname, collectionname string) string + func GCFHandler(MONGOCONNSTRINGENV, dbname, collectionname string) string + func GCFLoginAfterCreate(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFLoginAfterCreatee(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFLoginAfterCreateee(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFLoginAfterCreateeee(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFLoginAfterCreater(MONGOCONNSTRINGENV, dbname, collectionname, privateKeyEnv string, ...) (string, error) + func GCFLoginTest(username, password, MONGOCONNSTRINGENV, dbname, collectionname string) bool + func GCFPoint(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string + func GCFReturnStruct(DataStuct any) string + func GCFUpdateHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFUpdateLinestring(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFUpdatedContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GCFlineStingCreate(MONGOCONNSTRINGENV, dbname, collection string, r *http.Request) string + func GCFlineStingCreatea(MONGOCONNSTRINGENV, dbname, collection string, r *http.Request) string + func GFCPostHandlerUser(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GFCUpadatedCommnet(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func HashPassword(password string) (string, error) + func InsertDataUserGCF(Mongoenv, dbname string, r *http.Request) string + func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{}) + func InsertUserdata(MongoConn *mongo.Database, username, role, password string) (InsertedID interface{}) + func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool + func PostLineString(mongoconn *mongo.Database, collection string, commentdata GeoJsonLineString) interface + func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface + func PostPoint(mongoconn *mongo.Database, collection string, pointdata GeometryPoint) interface + func PostPolygone(mongoconn *mongo.Database, collection string, polygonedata GeoJsonPolygon) interface + func ReplaceContent(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface + func ReplaceOneDoc(mongoconn *mongo.Database, collection string, filter bson.M, userdata User) interface + func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database + func UpdatedComment(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface + func UpdatedLinestring(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface + type About struct + Description string + ID int + Image string + Title string + type Blog struct + Content []Content + Description string + ID int + Tanggal string + Title string + func GetAllBlogAll(mongoconn *mongo.Database, collection string) []Blog + func GetIDBlog(mongoconn *mongo.Database, collection string, blogdata Blog) Blog + type Category struct + Category []string + type Comment struct + Answer string + ID int + Questions string + Tanggal string + Username string + func GetAllComment(mongoconn *mongo.Database, collection string) []Comment + type Contack struct + Email string + ID int + Message string + Name string + Phone string + Subject string + type Content struct + Content string + Description string + ID int + Image string + func FindContentAllId(mongoconn *mongo.Database, collection string, contentdata Content) Content + func GetAllContent(mongoconn *mongo.Database, collection string) []Content + type Credential struct + Message string + Status bool + Token string + func GCFCreateProduct(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) Credential + type Event struct + Description string + Harga int + ID int + Image string + LinkYoutube string + Tanggal string + Title string + type EventGlobal struct + Description string + Harga int + ID int + Image string + Tanggal string + Title string + type Gallery struct + Description string + ID int + Image string + Title string + type GeoJson struct + Geometry Geometry + Properties Properties + Type string + func GetAllBangunanLineString(mongoconn *mongo.Database, collection string) []GeoJson + type GeoJsonLineString struct + Geometry GeometryLineString + Properties Properties + Type string + func GetByCoordinate(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) GeoJsonLineString + type GeoJsonPolygon struct + Geometry GeometryPolygon + Properties Properties + Type string + type Geometry struct + Coordinates interface{} + Type string + type GeometryLineString struct + Coordinates [][]float64 + Type string + type GeometryPoint struct + Coordinates []float64 + Type string + type GeometryPolygon struct + Coordinates [][][]float64 + Type string + type Iklan struct + Description string + ID int + Image string + Title string + type Product struct + Description string + ID primitive.ObjectID + Image string + Name string + Nomorid int + Price int + Size string + Stock int + func GetAllProduct(mongoconn *mongo.Database, collection string) []Product + type Properties struct + Name string + type Response struct + Data interface{} + Message string + Status bool + func CreateResponse(status bool, message string, data interface{}) Response + type Share struct + Share []string + type Tags struct + Tags []string + type User struct + Password string + Private string + Publick string + Role string + Token string + Username string + func FindUser(mongoconn *mongo.Database, collection string, userdata User) User + func FindUserByUsername(mongoconn *mongo.Database, collection string, username string) (User, error) + func FindUserUser(mongoconn *mongo.Database, collection string, userdata User) User + func GetAllUser(mongoconn *mongo.Database, collection string) []User + func GetNameAndPassowrd(mongoconn *mongo.Database, collection string) []User