peda

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 23 Imported by: 0

README

Adrian

go get -u all
go mod tidy
git tag                                 #check current version
git tag v0.0.28                          #set tag version
git push origin --tags                  #push tag version to repo
go list -m https://github.com/Fancypedia/fancybackend@v0.0.1   #publish to pkg dev, replace ORG/URL with your repo URL

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateUserAndGenerateToken

func AuthenticateUserAndGenerateToken(privateKeyEnv string, mongoconn *mongo.Database, collection string, userdata User) (string, error)

func Authorization

func Authorization(publickey, MONGOCONNSTRINGENV, dbname, collname string, r *http.Request) string

func BoxFix

func BoxFix(mongoenv, dbname string, r *http.Request) string

func Center

func Center(mongoconn *mongo.Database, longitude, latitude, radius float64) (namalokasi string)

func CenterSphere

func CenterSphere(mongoenv, dbname string, r *http.Request) string

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func CreateAbout

func CreateAbout(mongoconn *mongo.Database, collection string, aboutdata About) interface{}

func CreateBackend

func CreateBackend(mongoconn *mongo.Database, collection string, sidangdata Backend) interface{}

func CreateBlog

func CreateBlog(mongoconn *mongo.Database, collection string, blogdata Blog) interface{}

blog function

func CreateComment

func CreateComment(mongoconn *mongo.Database, collection string, commentdata Comment) interface{}

comment function

func CreateContact

func CreateContact(mongoconn *mongo.Database, collection string, contactdata Contack) interface{}

func CreateContentt

func CreateContentt(mongoconn *mongo.Database, collection string, contentdata Content) interface{}

func CreateEvent

func CreateEvent(mongoconn *mongo.Database, collection string, eventdata Event) interface{}

func CreateEventGlobal

func CreateEventGlobal(mongoconn *mongo.Database, collection string, eventglobaldata EventGlobal) interface{}

func CreateFronent

func CreateFronent(mongoconn *mongo.Database, collection string, sidangdata Frontend) interface{}

func CreateGallery

func CreateGallery(mongoconn *mongo.Database, collection string, gallerydata Gallery) interface{}

func CreateIklan

func CreateIklan(mongoconn *mongo.Database, collection string, iklandata Iklan) interface{}

CreateIklan function

func CreateLogin

func CreateLogin(mongoconn *mongo.Database, collection string, userdata User) interface{}

create login using Private

func CreateNewBlog

func CreateNewBlog(mongoconn *mongo.Database, collection string, blogdata Blog) interface{}

func CreateNewContent

func CreateNewContent(mongoconn *mongo.Database, collection string, contentdata Content) interface{}

content

func CreateNewProduct

func CreateNewProduct(mongoconn *mongo.Database, collection string, productdata Product) interface{}

func CreateNewUserRole

func CreateNewUserRole(mongoconn *mongo.Database, collection string, userdata User) interface{}
func GetAllUser(mongoconn *mongo.Database, collection string) []User {
	user := atdb.GetAllDoc[[]User](mongoconn, collection)
	return user
}

func CreateProduct

func CreateProduct(mongoconn *mongo.Database, collection string, productdata Product) interface{}

product function

func CreateSidang

func CreateSidang(mongoconn *mongo.Database, collection string, sidangdata InputSidang) interface{}

func CreateUser

func CreateUser(mongoconn *mongo.Database, collection string, userdata User) interface{}

func CreateUserAndAddToken

func CreateUserAndAddToken(privateKeyEnv string, mongoconn *mongo.Database, collection string, userdata User) error

func CreateUserAndAddedToeken

func CreateUserAndAddedToeken(PASETOPRIVATEKEYENV string, mongoconn *mongo.Database, collection string, userdata User) interface{}

func DecodeGetRole

func DecodeGetRole(publickey string, tokenstring string) string

func DeleteAbout

func DeleteAbout(mongoconn *mongo.Database, collection string, aboutdata About) interface{}

func DeleteBackend

func DeleteBackend(mongoconn *mongo.Database, collection string, sidangdata Backend) interface{}

func DeleteBlog

func DeleteBlog(mongoconn *mongo.Database, collection string, blogdata Blog) interface{}

func DeleteComment

func DeleteComment(mongoconn *mongo.Database, collection string, commentdata Comment) interface{}

func DeleteContact

func DeleteContact(mongoconn *mongo.Database, collection string, contactdata Contack) interface{}

func DeleteContent

func DeleteContent(mongoconn *mongo.Database, collection string, contentdata Content) interface{}

func DeleteContentt

func DeleteContentt(mongoconn *mongo.Database, collection string, contentdata Content) interface{}

func DeleteEvent

func DeleteEvent(mongoconn *mongo.Database, collection string, eventdata Event) interface{}

func DeleteEventGlobal

func DeleteEventGlobal(mongoconn *mongo.Database, collection string, eventglobaldata EventGlobal) interface{}

func DeleteFrondent

func DeleteFrondent(mongoconn *mongo.Database, collection string, sidangdata Frontend) interface{}

func DeleteGallery

func DeleteGallery(mongoconn *mongo.Database, collection string, gallerydata Gallery) interface{}

func DeleteIklan

func DeleteIklan(mongoconn *mongo.Database, collection string, iklandata Iklan) interface{}

func DeleteLinestring

func DeleteLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}

delete gis

func DeleteProduct

func DeleteProduct(mongoconn *mongo.Database, collection string, productdata Product) interface{}

func DeleteSidang

func DeleteSidang(mongoconn *mongo.Database, collection string, sidangdata InputSidang) interface{}

func DeleteTesting

func DeleteTesting(mongoconn *mongo.Database, collection string, testingdata Testing) interface{}

func DeleteUser

func DeleteUser(mongoconn *mongo.Database, collection string, userdata User) interface{}

func Encode

func Encode(name, username, role, privatekey string) (string, error)

func GCFAllGlobalID

func GCFAllGlobalID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateAboutt

func GCFCreateAboutt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collabout string, r *http.Request) string

about post

func GCFCreateAccountAndToken

func GCFCreateAccountAndToken(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateBE

func GCFCreateBE(publickey, MONGOCONNSTRINGENV, dbname, colluser, collfe string, r *http.Request) string

func GCFCreateBlogg

func GCFCreateBlogg(publickey, MONGOCONNSTRINGENV, dbname, colluser, collblog string, r *http.Request) string

blog post

func GCFCreateCommentt

func GCFCreateCommentt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcomment string, r *http.Request) string

func GCFCreateContactt

func GCFCreateContactt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcontact string, r *http.Request) string

contact post

func GCFCreateContent

func GCFCreateContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateContentt

func GCFCreateContentt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcontent string, r *http.Request) string

content post

func GCFCreateEventGlobal

func GCFCreateEventGlobal(publickey, MONGOCONNSTRINGENV, dbname, colluser, colleventglobal string, r *http.Request) string

event global post

func GCFCreateEventt

func GCFCreateEventt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collevent string, r *http.Request) string

<--- ini event ---> event post

func GCFCreateFE

func GCFCreateFE(publickey, MONGOCONNSTRINGENV, dbname, colluser, collfe string, r *http.Request) string

func GCFCreateGalleryy

func GCFCreateGalleryy(publickey, MONGOCONNSTRINGENV, dbname, colluser, collgallery string, r *http.Request) string

gallery post

func GCFCreateHandler

func GCFCreateHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateHandlerTokenPaseto

func GCFCreateHandlerTokenPaseto(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateIklann

func GCFCreateIklann(publickey, MONGOCONNSTRINGENV, dbname, colluser, collectioniklan string, r *http.Request) string

iklan post

func GCFCreateIklannN

func GCFCreateIklannN(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateLineStringgg

func GCFCreateLineStringgg(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateNewBlog

func GCFCreateNewBlog(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreatePolygone

func GCFCreatePolygone(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreatePolygonee

func GCFCreatePolygonee(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreatePostLineString

func GCFCreatePostLineString(MONGOCONNSTRINGENV, dbname, collection string, r *http.Request) string

func GCFCreatePostLineStringg

func GCFCreatePostLineStringg(MONGOCONNSTRINGENV, dbname, collection string, r *http.Request) string

func GCFCreatePostLocation

func GCFCreatePostLocation(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateProductt

func GCFCreateProductt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFCreateSidang

func GCFCreateSidang(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFCreateTesting

func GCFCreateTesting(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreateTokenAndSaveToDB

func GCFCreateTokenAndSaveToDB(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) (string, error)

func GCFCretatedEventGlobal

func GCFCretatedEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreteCommnet

func GCFCreteCommnet(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFCreteRegister

func GCFCreteRegister(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFDeleteAboutt

func GCFDeleteAboutt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collabout string, r *http.Request) string

delete about

func GCFDeleteBE

func GCFDeleteBE(publickey, MONGOCONNSTRINGENV, dbname, colluser, collfe string, r *http.Request) string

func GCFDeleteBlog

func GCFDeleteBlog(publickey, MONGOCONNSTRINGENV, dbname, colluser, collblog string, r *http.Request) string

delete blog

func GCFDeleteCommentt

func GCFDeleteCommentt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcomment string, r *http.Request) string

delete comment

func GCFDeleteContactt

func GCFDeleteContactt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcontact string, r *http.Request) string

delete contact

func GCFDeleteContent

func GCFDeleteContent(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcontent string, r *http.Request) string

delete content

func GCFDeleteEventGlobal

func GCFDeleteEventGlobal(publickey, MONGOCONNSTRINGENV, dbname, colluser, colleventglobal string, r *http.Request) string

delete event global

func GCFDeleteEventt

func GCFDeleteEventt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collevent string, r *http.Request) string

delete event

func GCFDeleteFE

func GCFDeleteFE(publickey, MONGOCONNSTRINGENV, dbname, colluser, collfe string, r *http.Request) string

func GCFDeleteGalleryy

func GCFDeleteGalleryy(publickey, MONGOCONNSTRINGENV, dbname, colluser, collgallery string, r *http.Request) string

delete gallery

func GCFDeleteHandler

func GCFDeleteHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFDeleteHandlerContent

func GCFDeleteHandlerContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFDeleteIklann

func GCFDeleteIklann(publickey, MONGOCONNSTRINGENV, dbname, colluser, collectioniklan string, r *http.Request) string

// delete iklan

func GCFDeleteLineString

func GCFDeleteLineString(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFDeleteProduct

func GCFDeleteProduct(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

delete product

func GCFDeleteSidang

func GCFDeleteSidang(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFDeleteTesting

func GCFDeleteTesting(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFDeletedCommnet

func GCFDeletedCommnet(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFEndCodepaseto

func GCFEndCodepaseto(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFFindBlogAllID

func GCFFindBlogAllID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFFindContentAllID

func GCFFindContentAllID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFFindUserByID

func GCFFindUserByID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFFindUserByName

func GCFFindUserByName(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFGetAllAboutt

func GCFGetAllAboutt(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all about

func GCFGetAllBE

func GCFGetAllBE(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFGetAllBlog

func GCFGetAllBlog(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFGetAllBlogg

func GCFGetAllBlogg(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all blog

func GCFGetAllComment

func GCFGetAllComment(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFGetAllCommentt

func GCFGetAllCommentt(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all comment

func GCFGetAllCommenttID

func GCFGetAllCommenttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

get all comment by id

func GCFGetAllContactt

func GCFGetAllContactt(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all contact

func GCFGetAllContacttID

func GCFGetAllContacttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

get all contact by id

func GCFGetAllContentBy

func GCFGetAllContentBy(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFGetAllContentt

func GCFGetAllContentt(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all content

func GCFGetAllContenttID

func GCFGetAllContenttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

get all content by id

func GCFGetAllEvent

func GCFGetAllEvent(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all

func GCFGetAllEventGlobal

func GCFGetAllEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all event global

func GCFGetAllEventGlobalID

func GCFGetAllEventGlobalID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

get all event global by id

func GCFGetAllEventt

func GCFGetAllEventt(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all event

func GCFGetAllFE

func GCFGetAllFE(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFGetAllGalleryy

func GCFGetAllGalleryy(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all gallery

func GCFGetAllGalleryyID

func GCFGetAllGalleryyID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

get all gallery by id

func GCFGetAllIklann

func GCFGetAllIklann(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all iklan

func GCFGetAllIklannID

func GCFGetAllIklannID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

get all iklan by id

func GCFGetAllPrivateID

func GCFGetAllPrivateID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFGetAllProduct

func GCFGetAllProduct(MONGOCONNSTRINGENV, dbname, collectionname string) string

product

func GCFGetAllProductt

func GCFGetAllProductt(MONGOCONNSTRINGENV, dbname, collectionname string) string

get all product

func GCFGetAllProducttID

func GCFGetAllProducttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

get all product by id

func GCFGetAllSidang

func GCFGetAllSidang(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFGetAllUser

func GCFGetAllUser(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFGetSidang

func GCFGetSidang(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFGetallTesting

func GCFGetallTesting(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFHandler

func GCFHandler(MONGOCONNSTRINGENV, dbname, collectionname string) string

func GCFLoginAfterCreate

func GCFLoginAfterCreate(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFLoginAfterCreatee

func GCFLoginAfterCreatee(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFLoginAfterCreateee

func GCFLoginAfterCreateee(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFLoginAfterCreateeee

func GCFLoginAfterCreateeee(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFLoginAfterCreater

func GCFLoginAfterCreater(MONGOCONNSTRINGENV, dbname, collectionname, privateKeyEnv string, r *http.Request) (string, error)

func GCFLoginFixx

func GCFLoginFixx(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFLoginFixxx

func GCFLoginFixxx(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFLoginTest

func GCFLoginTest(username, password, MONGOCONNSTRINGENV, dbname, collectionname string) bool

func GCFPoint

func GCFPoint(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFPostGeoIntersects

func GCFPostGeoIntersects(mongoenv, dbname string, r *http.Request) string

func GCFPostHandler

func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFPostHandlerrr

func GCFPostHandlerrr(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFReturnStruct

func GCFReturnStruct(DataStuct any) string

func GCFUpdateAboutt

func GCFUpdateAboutt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collabout string, r *http.Request) string

update about

func GCFUpdateBE

func GCFUpdateBE(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFUpdateBlog

func GCFUpdateBlog(publickey, MONGOCONNSTRINGENV, dbname, colluser, collblog string, r *http.Request) string

update blog

func GCFUpdateCommentt

func GCFUpdateCommentt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcomment string, r *http.Request) string

update comment

func GCFUpdateContactt

func GCFUpdateContactt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcontact string, r *http.Request) string

update contact

func GCFUpdateContent

func GCFUpdateContent(publickey, MONGOCONNSTRINGENV, dbname, colluser, collcontent string, r *http.Request) string

update content

func GCFUpdateEventGlobal

func GCFUpdateEventGlobal(publickey, MONGOCONNSTRINGENV, dbname, colluser, colleventglobal string, r *http.Request) string

update event global

func GCFUpdateEventt

func GCFUpdateEventt(publickey, MONGOCONNSTRINGENV, dbname, colluser, collevent string, r *http.Request) string

update event

func GCFUpdateFE

func GCFUpdateFE(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFUpdateGalleryy

func GCFUpdateGalleryy(publickey, MONGOCONNSTRINGENV, dbname, colluser, collgallery string, r *http.Request) string

// update gallery

func GCFUpdateHandler

func GCFUpdateHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFUpdateIklann

func GCFUpdateIklann(publickey, MONGOCONNSTRINGENV, dbname, colluser, collectioniklan string, r *http.Request) string

// update iklan

func GCFUpdateLinestring

func GCFUpdateLinestring(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFUpdateProduct

func GCFUpdateProduct(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFUpdateSidang

func GCFUpdateSidang(publickey, MONGOCONNSTRINGENV, dbname, colluser, collproduct string, r *http.Request) string

func GCFUpdatedContent

func GCFUpdatedContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFUpdatedTesting

func GCFUpdatedTesting(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GCFlineStingCreate

func GCFlineStingCreate(MONGOCONNSTRINGENV, dbname, collection string, r *http.Request) string

func GCFlineStingCreatea

func GCFlineStingCreatea(MONGOCONNSTRINGENV, dbname, collection string, r *http.Request) string

func GFCPostHandlerUser

func GFCPostHandlerUser(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GFCUpadatedCommnet

func GFCUpadatedCommnet(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string

func GenerateKey

func GenerateKey() (privatekey, publickey string)

func GeoIntersects

func GeoIntersects(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)

func GeoWithin

func GeoWithin(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi []string)

func GeometryFix

func GeometryFix(mongoenv, dbname string, r *http.Request) string

func Geometryyy

func Geometryyy(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi string)

func GetBoxDoc

func GetBoxDoc(db *mongo.Database, collname string, coordinates Polyline) (result string)

func GetBoxDoccc

func GetBoxDoccc(mongoconn *mongo.Database, coordinates Polyline) (result string, err error)

func HashPassword

func HashPassword(password string) (string, error)

func InsertUserdata

func InsertUserdata(mongoconn *mongo.Database, collname, username, password, no_whatsapp string) (InsertedID interface{})

func IsPasswordValid

func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool

func MaxDistance

func MaxDistance(mongoenv, dbname string, r *http.Request) string

func MaxDistancee

func MaxDistancee(mongoconn *mongo.Database, point []float64, maxdistance float64) (namalokasi string)

func MinDistancee

func MinDistancee(mongoconn *mongo.Database, point []float64, minDistance float64) (namalokasi string)

func MinDistanceee

func MinDistanceee(mongoenv, dbname string, r *http.Request) string

func Near

func Near(mongoconn *mongo.Database, long float64, lat float64, max float64, min float64) ([]string, error)

func NearSpehere

func NearSpehere(mongoconn *mongo.Database, long float64, lat float64) ([]string, error)

Modify the NearSpehere function

func NearSpeheree

func NearSpeheree(mongoenv, dbname string, r *http.Request) string

Calling code for NearSpeheree

func Polygon

func Polygon(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi string)

func Polygonn

func Polygonn(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi string)

func Polygonnn

func Polygonnn(mongoenv, dbname string, r *http.Request) string

func PostGeoWithin

func PostGeoWithin(mongoenv, dbname string, r *http.Request) string

func PostLinestring

func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}

func PostLocation

func PostLocation(mongoconn *mongo.Database, collection string, locationdata Location) interface{}

func PostNear

func PostNear(mongoenv, dbname string, r *http.Request) string

func PostPoint

func PostPoint(mongoconn *mongo.Database, collection string, pointdata GeometryPoint) interface{}

func PostPolygone

func PostPolygone(mongoconn *mongo.Database, collection string, polygonedata GeoJsonPolygon) interface{}

func PostTesting

func PostTesting(mongoconn *mongo.Database, collection string, testingdata Testing) interface{}

testing crud

func Registrasi

func Registrasi(token, mongoenv, dbname, collname string, r *http.Request) string

func ReplaceContent

func ReplaceContent(mongoconn *mongo.Database, collection string, filter bson.M, contentdata Content) interface{}

func ReplaceOneDoc

func ReplaceOneDoc(mongoconn *mongo.Database, collection string, filter bson.M, userdata User) interface{}

func SetConnection

func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database

func SetConnection2dsphereMax

func SetConnection2dsphereMax(mongoenv, dbname string) *mongo.Database

func SetConnection2dsphereMix

func SetConnection2dsphereMix(mongoenv, dbname string) *mongo.Database

func SetConnection2dsphereTest

func SetConnection2dsphereTest(mongoenv, dbname string) *mongo.Database

func SetConnection2dsphereTestBox

func SetConnection2dsphereTestBox(mongoenv, dbname string) *mongo.Database

func SetConnection2dsphereTestPoint

func SetConnection2dsphereTestPoint(mongoenv, dbname string) *mongo.Database

func TestPolygon

func TestPolygon(t *testing.T)

func UpdateBackend

func UpdateBackend(mongoconn *mongo.Database, collection string, filter bson.M, sidangdata Backend) interface{}

func UpdateFrontend

func UpdateFrontend(mongoconn *mongo.Database, collection string, filter bson.M, sidangdata Frontend) interface{}

func UpdateSidang

func UpdateSidang(mongoconn *mongo.Database, collection string, filter bson.M, sidangdata InputSidang) interface{}

func UpdateSidangFix

func UpdateSidangFix(mongoconn *mongo.Database, collection string, filter bson.M, inputsidang Product) interface{}

func UpdatedAbout

func UpdatedAbout(mongoconn *mongo.Database, collection string, filter bson.M, aboutdata About) interface{}

func UpdatedBlog

func UpdatedBlog(mongoconn *mongo.Database, collection string, filter bson.M, blogdata Blog) interface{}

func UpdatedComment

func UpdatedComment(mongoconn *mongo.Database, collection string, filter bson.M, commentdata Comment) interface{}

func UpdatedContact

func UpdatedContact(mongoconn *mongo.Database, collection string, filter bson.M, contactdata Contack) interface{}

func UpdatedContentt

func UpdatedContentt(mongoconn *mongo.Database, collection string, filter bson.M, contentdata Content) interface{}

func UpdatedEvent

func UpdatedEvent(mongoconn *mongo.Database, collection string, filter bson.M, eventdata Event) interface{}

func UpdatedEventGlobal

func UpdatedEventGlobal(mongoconn *mongo.Database, collection string, filter bson.M, eventglobaldata EventGlobal) interface{}

func UpdatedGallery

func UpdatedGallery(mongoconn *mongo.Database, collection string, filter bson.M, gallerydata Gallery) interface{}

func UpdatedIklan

func UpdatedIklan(mongoconn *mongo.Database, collection string, filter bson.M, iklandata Iklan) interface{}

func UpdatedLinestring

func UpdatedLinestring(mongoconn *mongo.Database, collection string, filter bson.M, linestringdata GeoJsonLineString) interface{}

func UpdatedProduct

func UpdatedProduct(mongoconn *mongo.Database, collection string, filter bson.M, productdata Product) interface{}

func UpdatedTesting

func UpdatedTesting(mongoconn *mongo.Database, collection string, filter bson.M, testingdata Testing) interface{}

Types

type About

type About struct {
	ID          int       `json:"id" bson:"id"`
	Title       string    `json:"title" bson:"title"`
	Description string    `json:"description" bson:"description"`
	Image       string    `json:"image" bson:"image"`
	Content     []Content `json:"content" bson:"content"`
	Product     []Product `json:"product" bson:"product"`
	Status      bool      `json:"status" bson:"status"`
}

func GetAllAbout

func GetAllAbout(mongoconn *mongo.Database, collection string) []About

func GetIDAbout

func GetIDAbout(mongoconn *mongo.Database, collection string, aboutdata About) About

type Backend

type Backend struct {
	Npm                int    `json:npm bson:"npm"`
	Nama               string `json:nama bson:"nama"`
	NamaDosen          string `json:namadosen bson:"namadosen"`
	Autentikasitoken   string `json:autentikasitoken bson:"autentikasitoken"`
	Packagesendiri     string `json:packagesendiri bson:"packagesendiri"`
	Endpointgcfjakarta string `json:endpointgcfjakarta bson:"endpointgcfjakarta"`
	Integrasiwamyid    string `json:integrasiwamyid bson:"integrasiwamyid"`
	Status             bool   `json:status bson:"status"`
}

func FindBackend

func FindBackend(mongoconn *mongo.Database, collection string, userdata Backend) Backend

func GetAllBackend

func GetAllBackend(mongoconn *mongo.Database, collection string) []Backend

type Blog

type Blog struct {
	ID                int    `json:"id" bson:"id"`
	Content           string `json:"content_one" bson:"content_one"`
	Content_two       string `json:"content_two" bson:"content_two"`
	Image             string `json:"image" bson:"image"`
	Title             string `json:"title" bson:"title"`
	Title_two         string `json:"title_two" bson:"title_two"`
	Description       string `json:"description" bson:"description"`
	Description_twoo  string `json:"description_two" bson:"description_two"`
	Description_three string `json:"description_3" bson:"description_3"`
	Status            bool   `json:"status" bson:"status"`
}

func GetAllBlog

func GetAllBlog(mongoconn *mongo.Database, collection string) []Blog

func GetAllBlogAll

func GetAllBlogAll(mongoconn *mongo.Database, collection string) []Blog

func GetIDBlog

func GetIDBlog(mongoconn *mongo.Database, collection string, blogdata Blog) Blog

func GetIDBloggg

func GetIDBloggg(mongoconn *mongo.Database, collection string, blogdata Blog) Blog

type Category

type Category struct {
	Category string `json:"category" bson:"category"`
	Status   bool   `json:"status" bson:"status"`
}

type Comment

type Comment struct {
	ID        int    `json:"id" bson:"id"`
	Username  string `json:"username" bson:"username"`
	Answer    string `json:"comment" bson:"comment"`
	Questions string `json:"questions" bson:"questions"`
	Tanggal   string `json:"tanggal" bson:"tanggal"`
	Status    bool   `json:"status" bson:"status"`
}

func GetAllComment

func GetAllComment(mongoconn *mongo.Database, collection string) []Comment

func GetIDComment

func GetIDComment(mongoconn *mongo.Database, collection string, commentdata Comment) Comment

type Contack

type Contack struct {
	ID      int    `json:"id" bson:"id"`
	Name    string `json:"title" bson:"title"`
	Subject string `json:"description" bson:"description"`
	Message string `json:"image" bson:"image"`
	Email   string `json:"email" bson:"email"`
	Phone   string `json:"phone" bson:"phone"`
	Status  bool   `json:"status" bson:"status"`
}

func GetAllContact

func GetAllContact(mongoconn *mongo.Database, collection string) []Contack

func GetIdContact

func GetIdContact(mongoconn *mongo.Database, collection string, contactdata Contack) Contack

type Content

type Content struct {
	ID          int    `json:"id" bson:"id" `
	Content     string `json:"content" bson:"content"`
	Image       string `json:"image" bson:"image"`
	Description string `json:"description" bson:"description"`
	Status      bool   `json:"status" bson:"status"`
}

func FindContentAllId

func FindContentAllId(mongoconn *mongo.Database, collection string, contentdata Content) Content

func GetAllContent

func GetAllContent(mongoconn *mongo.Database, collection string) []Content

func GetAllContentt

func GetAllContentt(mongoconn *mongo.Database, collection string) []Content

func GetIDContentt

func GetIDContentt(mongoconn *mongo.Database, collection string, contentdata Content) Content

type Credential

type Credential struct {
	Status   bool        `json:"status" bson:"status"`
	Token    string      `json:"token,omitempty" bson:"token,omitempty"`
	Message  string      `json:"message,omitempty" bson:"message,omitempty"`
	Username string      `json:"username,omitempty" bson:"username,omitempty"`
	Data     interface{} `json:"data,omitempty" bson:"data,omitempty"`
}

func GCFCreateProduct

func GCFCreateProduct(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) Credential

func GCFCreateProducttWithpublickey

func GCFCreateProducttWithpublickey(MONGOCONNSTRINGENV, dbname, collectionname string, publickey string, r *http.Request) Credential

func GCFCreateProducttWithpublickeyFix

func GCFCreateProducttWithpublickeyFix(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) Credential

type Event

type Event struct {
	ID          int       `json:"id" bson:"id"`
	Title       string    `json:"title" bson:"title"`
	Description string    `json:"description" bson:"description"`
	Tanggal     string    `json:"tanggal" bson:"tanggal"`
	Image       string    `json:"image" bson:"image"`
	Harga       int       `json:"harga" bson:"harga"`
	LinkYoutube string    `json:"linkyoutube" bson:"linkyoutube"`
	Content     []Content `json:"content" bson:"content"`
	Product     []Product `json:"product" bson:"product"`
	Status      bool      `json:"status" bson:"status"`
}

func GetAllEvent

func GetAllEvent(mongoconn *mongo.Database, collection string) []Event

func GetIDEvent

func GetIDEvent(mongoconn *mongo.Database, collection string, eventdata Event) Event

type EventGlobal

type EventGlobal struct {
	ID          int       `json:"id" bson:"id"`
	Title       string    `json:"title" bson:"title"`
	Description string    `json:"description" bson:"description"`
	Tanggal     string    `json:"tanggal" bson:"tanggal"`
	Image       string    `json:"image" bson:"image"`
	Harga       int       `json:"harga" bson:"harga"`
	Content     []Content `json:"content" bson:"content"`
	Product     []Product `json:"product" bson:"product"`
	Status      bool      `json:"status" bson:"status"`
}

func GetAllEventGlobal

func GetAllEventGlobal(mongoconn *mongo.Database, collection string) []EventGlobal

func GetAllEventGlobalId

func GetAllEventGlobalId(mongoconn *mongo.Database, collection string, eventglobaldata EventGlobal) []EventGlobal

type Frontend

type Frontend struct {
	Npm            int    `json:npm bson:"npm"`
	Nama           string `json:nama bson:"nama"`
	NamaDosen      string `json:namadosen bson:"namadosen"`
	Rilisjs        string `json:rilisjs bson:"rilisjs"`
	Pemanggilanjs  string `json:pemanggilanjs bson:"pemanggilanjs"`
	Kelengkapancss string `json:kelengkapancss bson:"kelengkapancss"`
	CustomDomain   string `json:customdomain bson:"customdomain"`
	Status         bool   `json:status bson:"status"`
}

func FindFrontend

func FindFrontend(mongoconn *mongo.Database, collection string, userdata Frontend) Frontend

func GetAllFrontend

func GetAllFrontend(mongoconn *mongo.Database, collection string) []Frontend

func GetallFrontend

func GetallFrontend(mongoconn *mongo.Database, collection string) []Frontend

type FullGeoJson

type FullGeoJson struct {
	ID         primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Type       string             `json:"type" bson:"type"`
	Properties Properties         `json:"properties" bson:"properties"`
	Geometry   Geometry           `json:"geometry" bson:"geometry"`
}
type Gallery struct {
	ID          int    `json:"id" bson:"id"`
	Title       string `json:"title" bson:"title"`
	Description string `json:"description" bson:"description"`
	Image       string `json:"image" bson:"image"`
	Status      bool   `json:"status" bson:"status"`
}

func GetAllGallery

func GetAllGallery(mongoconn *mongo.Database, collection string) []Gallery

func GetIDGallery

func GetIDGallery(mongoconn *mongo.Database, collection string, gallerydata Gallery) Gallery

type GeoBorder

type GeoBorder struct {
	Type        string        `bson:"type"`
	Coordinates [][][]float64 `bson:"coordinates"`
}

type GeoJson

type GeoJson struct {
	Type       string     `json:"type" bson:"type"`
	Properties Properties `json:"properties" bson:"properties"`
	Geometry   Geometry   `json:"geometry" bson:"geometry"`
}

func GetAllBangunanLineString

func GetAllBangunanLineString(mongoconn *mongo.Database, collection string) []GeoJson

type GeoJsonLineString

type GeoJsonLineString struct {
	Type       string             `json:"type" bson:"type"`
	Properties Properties         `json:"properties" bson:"properties"`
	Geometry   GeometryLineString `json:"geometry" bson:"geometry"`
}

func GetByCoordinate

func GetByCoordinate(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) GeoJsonLineString

type GeoJsonPolygon

type GeoJsonPolygon struct {
	Type       string          `json:"type" bson:"type"`
	Properties Properties      `json:"properties" bson:"properties"`
	Geometry   GeometryPolygon `json:"geometry" bson:"geometry"`
}

type Geometry

type Geometry struct {
	Coordinates interface{} `json:"coordinates" bson:"coordinates"`
	Type        string      `json:"type" bson:"type"`
}

type GeometryLineString

type GeometryLineString struct {
	Coordinates [][]float64 `json:"coordinates" bson:"coordinates"`
	Type        string      `json:"type" bson:"type"`
}

type GeometryPoint

type GeometryPoint struct {
	Coordinates []float64 `json:"coordinates" bson:"coordinates"`
	Type        string    `json:"type" bson:"type"`
}

type GeometryPolygon

type GeometryPolygon struct {
	Coordinates [][][]float64 `json:"coordinates" bson:"coordinates"`
	Type        string        `json:"type" bson:"type"`
}

type Iklan

type Iklan struct {
	ID          int    `json:"id" bson:"id"`
	Title       string `json:"title" bson:"title"`
	Description string `json:"description" bson:"description"`
	Image       string `json:"image" bson:"image"`
	Status      bool   `json:"status" bson:"status"`
}

func GetAllIklan

func GetAllIklan(mongoconn *mongo.Database, collection string) []Iklan

func GetIDIklan

func GetIDIklan(mongoconn *mongo.Database, collection string, iklandata Iklan) Iklan

type InputSidang

type InputSidang struct {
	Npm                int    `json:npm bson:"npm"`
	Endpoint_token     string `jsong:"endpoint_token" bson:"endpoint_token"`
	Package            string `json:"package" bson:"package"`
	Endpoint_indonesia string `json:"endpoint_indonesia" bson:"endpoint_indonesia"`
	Wamyid             string `json:"wamyid" bson:"wamyid"`
	RilisJsv           string `json:"rilis_jsv" bson:"rilis_jsv"`
	TypeModule         string `json:"type_module" bson:"type_module"`
	Kelengkapan_css    string `json:"kelengkapan_css" bson:"kelengkapan_css"`
	GithubPages        string `json:"github_pages" bson:"github_pages"`
}

func GetAllSidang

func GetAllSidang(mongoconn *mongo.Database, collection string) []InputSidang

type Location

type Location struct {
	Type        string      `bson:"type"`
	Coordinates [][]float64 `bson:"coordinates"`
	CRS         struct {
		Type       string `bson:"type"`
		Properties struct {
			Name string `bson:"name"`
		} `bson:"properties"`
	} `bson:"crs"`
}

type LocationData

type LocationData struct {
	ID          string    `bson:"_id"`
	Province    string    `bson:"province"`
	District    string    `bson:"district"`
	SubDistrict string    `bson:"sub_district"`
	Village     string    `bson:"village"`
	Border      GeoBorder `bson:"border"`
}

type Lokasi

type Lokasi struct {
	ID         primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
	Type       string             `json:"type" bson:"type"`
	Properties Properties         `json:"properties" bson:"properties"`
	Geometry   Geometry           `json:"geometry" bson:"geometry"`
}

type LongLat

type LongLat struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
	Min       float64 `json:"min"`
	Max       float64 `json:"max"`
}

type LongLatt

type LongLatt struct {
	Latitude   float64 `json:"latitude"`
	Longitude  float64 `json:"longitude"`
	Latitude2  float64 `json:"latitude2"`
	Longitude2 float64 `json:"longitude2"`
}

type Name

type Name struct {
	Name string `bson:"name,omitempty"`
}

type Payload

type Payload struct {
	User string    `json:"user"`
	Role string    `json:"role"`
	Exp  time.Time `json:"exp"`
	Iat  time.Time `json:"iat"`
	Nbf  time.Time `json:"nbf"`
}

func Decode

func Decode(publickey, tokenstr string) (payload Payload, err error)

func IsTokenValid

func IsTokenValid(publickey, tokenstr string) (payload Payload, err error)

pengecekantoken

type Pesan

type Pesan struct {
	Status  bool   `json:"status" bson:"status"`
	Message string `json:"message" bson:"message"`
}

type Polyline

type Polyline struct {
	Coordinates [][]float64 `json:"coordinates"`
}

type Product

type Product struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" `
	Nomorid     int                `json:"nomorid" bson:"nomorid"`
	Name        string             `json:"name" bson:"name"`
	Description string             `json:"description" bson:"description"`
	Price       int                `json:"price" bson:"price"`
	Stock       int                `json:"stock" bson:"stock"`
	Size        string             `json:"size" bson:"size"`
	Image       string             `json:"image" bson:"image"`
	Status      string             `json:"status" bson:"status"`
}

func GetAllProduct

func GetAllProduct(mongoconn *mongo.Database, collection string) []Product

func GetAllProductID

func GetAllProductID(mongoconn *mongo.Database, collection string, productdata Product) Product

func GetAllProductt

func GetAllProductt(mongoconn *mongo.Database, collection string) []Product

type Properties

type Properties struct {
	Name string `json:"name" bson:"name"`
}

type Query

type Query struct {
	LocationField struct {
		GeoIntersects struct {
			Geometry Location `bson:"$geometry"`
		} `bson:"$geoIntersects"`
	} `bson:"locationField"`
}

type Radius

type Radius struct {
	Radius float64 `json:"radius"`
}

type Response

type Response struct {
	Status  bool        `json:"status" bson:"status"`
	Message string      `json:"message" bson:"message"`
	Data    interface{} `json:"data" bson:"data"`
}

func CreateResponse

func CreateResponse(status bool, message string, data interface{}) Response

type Share

type Share struct {
	Share  string `json:"share" bson:"share"`
	Status bool   `json:"status" bson:"status"`
}

type Tags

type Tags struct {
	Tags string `json:"tags" bson:"tags"`
}

type Testing

type Testing struct {
	ID          int    `json:"id" bson:"id"`
	Title       string `json:title bson:"title"`
	Description string `json:description bson:"description"`
	Image       string `json:image bson:"image"`
	Status      bool   `json:status bson:"status"`
	Nama        string `json:nama bson:"nama"`
	// contains filtered or unexported fields
}

func GetAllTesting

func GetAllTesting(mongoconn *mongo.Database, collection string) []Testing

type User

type User struct {
	Username    string `json:"username" bson:"username"`
	Password    string `json:"password" bson:"password,omitempty"`
	Role        string `json:"role,omitempty" bson:"role,omitempty"`
	Token       string `json:"token,omitempty" bson:"token,omitempty"`
	Private     string `json:"private,omitempty" bson:"private,omitempty"`
	Publick     string `json:"publick,omitempty" bson:"publick,omitempty"`
	No_whatsapp string `json:"no_whatsapp,omitempty" bson:"no_whatsapp,omitempty"`
}

func FindPrivate

func FindPrivate(mongoconn *mongo.Database, collection string, userdata User) User

func FindUser

func FindUser(mongoconn *mongo.Database, collection string, userdata User) User

func FindUserByPrivate

func FindUserByPrivate(mongoconn *mongo.Database, collection string, userdata User) (User, error)

func FindUserByUsername

func FindUserByUsername(mongoconn *mongo.Database, collection string, username string) (User, error)

func FindUserByname

func FindUserByname(mongoconn *mongo.Database, collection string, userdata User) User

func FindUserUser

func FindUserUser(mongoconn *mongo.Database, collection string, userdata User) User

func FindUserUserr

func FindUserUserr(mongoconn *mongo.Database, collection string, userdata User) (User, error)

func GetAllUser

func GetAllUser(mongoconn *mongo.Database, collection string) []User

func GetNameAndPassowrd

func GetNameAndPassowrd(mongoconn *mongo.Database, collection string) []User

func IsPasswordValidd

func IsPasswordValidd(mconn *mongo.Database, collection string, userdata User) (User, bool)

type UserToken

type UserToken struct {
	Username User `json:"username" bson:"username"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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