Documentation
¶
Index ¶
- func AuthenticateUserAndGenerateToken(privateKeyEnv string, mongoconn *mongo.Database, collection string, ...) (string, error)
- func CheckPasswordHash(password, hash string) bool
- func CreateAbout(mongoconn *mongo.Database, collection string, aboutdata About) interface{}
- func CreateBlog(mongoconn *mongo.Database, collection string, blogdata Blog) interface{}
- func CreateComment(mongoconn *mongo.Database, collection string, commentdata Comment) interface{}
- func CreateContact(mongoconn *mongo.Database, collection string, contactdata Contack) interface{}
- func CreateContentt(mongoconn *mongo.Database, collection string, contentdata Content) interface{}
- func CreateEvent(mongoconn *mongo.Database, collection string, eventdata Event) interface{}
- func CreateEventGlobal(mongoconn *mongo.Database, collection string, eventglobaldata EventGlobal) interface{}
- func CreateGallery(mongoconn *mongo.Database, collection string, gallerydata Gallery) interface{}
- func CreateIklan(mongoconn *mongo.Database, collection string, iklandata Iklan) 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 CreateProduct(mongoconn *mongo.Database, collection string, productdata Product) 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 DeleteAbout(mongoconn *mongo.Database, collection string, aboutdata About) interface{}
- func DeleteBlog(mongoconn *mongo.Database, collection string, blogdata Blog) interface{}
- func DeleteComment(mongoconn *mongo.Database, collection string, commentdata Comment) interface{}
- func DeleteContact(mongoconn *mongo.Database, collection string, contactdata Contack) interface{}
- func DeleteContent(mongoconn *mongo.Database, collection string, contentdata Content) interface{}
- func DeleteContentt(mongoconn *mongo.Database, collection string, contentdata Content) interface{}
- func DeleteEvent(mongoconn *mongo.Database, collection string, eventdata Event) interface{}
- func DeleteEventGlobal(mongoconn *mongo.Database, collection string, eventglobaldata EventGlobal) interface{}
- func DeleteGallery(mongoconn *mongo.Database, collection string, gallerydata Gallery) interface{}
- func DeleteIklan(mongoconn *mongo.Database, collection string, iklandata Iklan) interface{}
- func DeleteProduct(mongoconn *mongo.Database, collection string, productdata Product) interface{}
- func DeleteUser(mongoconn *mongo.Database, collection string, userdata User) interface{}
- func GCFAllGlobalID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateAboutt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateAccountAndToken(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFCreateBlogg(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateCommentt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateContactt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateContentt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateEventt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateGalleryy(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 GCFCreateIklann(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateNewBlog(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 GCFCreateProductt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreateTokenAndSaveToDB(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) (string, error)
- func GCFCretatedEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreteCommnet(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFCreteRegister(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteAboutt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteBlog(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteCommentt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteContactt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteEventt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteGalleryy(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 GCFDeleteIklann(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteProduct(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 GCFGetAllAboutt(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllAbouttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllBlog(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllBlogg(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllComment(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllCommentt(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllCommenttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllContactt(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllContacttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllContentBy(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllContentt(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllContenttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllEvent(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllEventGlobalID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllEventt(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllEventtID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllGalleryy(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllGalleryyID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllIklann(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllIklannID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllProduct(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllProductt(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GCFGetAllProducttID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) 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 GCFLoginFixx(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFLoginFixxx(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFLoginTest(username, password, MONGOCONNSTRINGENV, dbname, collectionname string) bool
- func GCFPostHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func GCFUpdateAboutt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateBlog(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateCommentt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateContactt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateContent(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateEventt(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateGalleryy(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateHandler(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateIklann(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdateProduct(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFUpdatedContent(MONGOCONNSTRINGENV, dbname, collectionname 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 IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) 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 UpdatedAbout(mongoconn *mongo.Database, collection string, filter bson.M, aboutdata About) interface{}
- func UpdatedBlog(mongoconn *mongo.Database, collection string, filter bson.M, blogdata Blog) interface{}
- func UpdatedComment(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface{}
- func UpdatedContact(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface{}
- func UpdatedContentt(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface{}
- func UpdatedEvent(mongoconn *mongo.Database, collection string, filter bson.M, eventdata Event) interface{}
- func UpdatedEventGlobal(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface{}
- func UpdatedGallery(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface{}
- func UpdatedIklan(mongoconn *mongo.Database, collection string, filter bson.M, iklandata Iklan) interface{}
- func UpdatedProduct(mongoconn *mongo.Database, collection string, filter bson.M, ...) interface{}
- type About
- type Blog
- func GetAllBlog(mongoconn *mongo.Database, collection string) []Blog
- func GetAllBlogAll(mongoconn *mongo.Database, collection string) []Blog
- func GetIDBlog(mongoconn *mongo.Database, collection string, blogdata Blog) Blog
- func GetIDBloggg(mongoconn *mongo.Database, collection string, blogdata Blog) Blog
- type Category
- type Comment
- type Contack
- type Content
- func FindContentAllId(mongoconn *mongo.Database, collection string, contentdata Content) Content
- func GetAllContent(mongoconn *mongo.Database, collection string) []Content
- func GetAllContentt(mongoconn *mongo.Database, collection string) []Content
- func GetIDContentt(mongoconn *mongo.Database, collection string, contentdata Content) Content
- type Credential
- func GCFCreateProduct(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) Credential
- func GCFCreateProducttWithpublickey(MONGOCONNSTRINGENV, dbname, collectionname string, publickey string, ...) Credential
- func GCFCreateProducttWithpublickeyFix(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) Credential
- type Event
- type EventGlobal
- type Gallery
- type GeoJson
- type GeoJsonLineString
- type GeoJsonPolygon
- type Geometry
- type GeometryLineString
- type GeometryPoint
- type GeometryPolygon
- type Iklan
- type Payload
- type Product
- type Properties
- type Response
- type Share
- type Tags
- type User
- 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 FindUserUserr(mongoconn *mongo.Database, collection string, userdata User) (User, error)
- func GetNameAndPassowrd(mongoconn *mongo.Database, collection string) []User
- func IsPasswordValidd(mconn *mongo.Database, collection string, userdata User) (User, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func CreateAbout ¶ added in v1.3.0
func CreateBlog ¶ added in v1.9.34
blog function
func CreateComment ¶ added in v1.3.0
comment function
func CreateContact ¶ added in v1.3.0
func CreateContentt ¶ added in v1.9.34
func CreateEvent ¶ added in v1.3.0
func CreateEventGlobal ¶ added in v1.3.0
func CreateEventGlobal(mongoconn *mongo.Database, collection string, eventglobaldata EventGlobal) interface{}
func CreateGallery ¶ added in v1.3.0
func CreateIklan ¶ added in v1.3.0
CreateIklan function
func CreateLogin ¶
create login using Private
func CreateNewBlog ¶
func CreateNewContent ¶
func CreateNewContent(mongoconn *mongo.Database, collection string, contentdata Content) interface{}
content
func CreateNewProduct ¶
func CreateNewUserRole ¶
func GetAllUser(mongoconn *mongo.Database, collection string) []User {
user := atdb.GetAllDoc[[]User](mongoconn, collection)
return user
}
func CreateProduct ¶ added in v1.9.34
product function
func CreateUser ¶
func CreateUserAndAddToken ¶
func DeleteAbout ¶ added in v1.3.0
func DeleteBlog ¶ added in v1.9.34
func DeleteComment ¶ added in v1.3.0
func DeleteContact ¶ added in v1.3.0
func DeleteContent ¶
func DeleteContentt ¶ added in v1.9.34
func DeleteEvent ¶ added in v1.3.0
func DeleteEventGlobal ¶ added in v1.3.0
func DeleteEventGlobal(mongoconn *mongo.Database, collection string, eventglobaldata EventGlobal) interface{}
func DeleteGallery ¶ added in v1.3.0
func DeleteIklan ¶ added in v1.3.0
func DeleteProduct ¶ added in v1.9.34
func DeleteUser ¶
func GCFAllGlobalID ¶ added in v1.3.0
func GCFCreateAboutt ¶ added in v1.9.34
about post
func GCFCreateBlogg ¶ added in v1.9.34
blog post
func GCFCreateCommentt ¶ added in v1.9.34
func GCFCreateContactt ¶ added in v1.9.34
contact post
func GCFCreateContent ¶
func GCFCreateContentt ¶ added in v1.9.34
content post
func GCFCreateEventGlobal ¶ added in v1.9.34
func GCFCreateEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
event global post
func GCFCreateEventt ¶ added in v1.9.34
<--- ini event ---> event post
func GCFCreateGalleryy ¶ added in v1.9.34
gallery post
func GCFCreateHandler ¶
func GCFCreateIklann ¶ added in v1.9.34
iklan post
func GCFCreateNewBlog ¶
func GCFCreatePostLineString ¶ added in v1.3.0
func GCFCreatePostLineStringg ¶ added in v1.3.0
func GCFCreateProductt ¶ added in v1.9.34
func GCFCretatedEventGlobal ¶ added in v1.3.0
func GCFCreteCommnet ¶ added in v1.3.0
func GCFCreteRegister ¶
func GCFDeleteAboutt ¶ added in v1.9.34
delete about
func GCFDeleteBlog ¶ added in v1.9.34
delete blog
func GCFDeleteCommentt ¶ added in v1.9.34
delete comment
func GCFDeleteContactt ¶ added in v1.9.34
delete contact
func GCFDeleteContent ¶ added in v1.9.34
delete content
func GCFDeleteEventGlobal ¶ added in v1.9.34
func GCFDeleteEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
delete event global
func GCFDeleteEventt ¶ added in v1.9.34
delete event
func GCFDeleteGalleryy ¶ added in v1.9.34
delete gallery
func GCFDeleteHandler ¶
func GCFDeleteHandlerContent ¶
func GCFDeleteIklann ¶ added in v1.9.34
delete iklan
func GCFDeleteProduct ¶ added in v1.9.34
delete product
func GCFDeletedCommnet ¶ added in v1.3.0
func GCFFindBlogAllID ¶
func GCFFindContentAllID ¶
func GCFFindUserByID ¶
func GCFFindUserByName ¶
func GCFGetAllAboutt ¶ added in v1.9.34
get all about
func GCFGetAllAbouttID ¶ added in v1.9.34
get all about by id
func GCFGetAllBlog ¶
func GCFGetAllBlogg ¶ added in v1.9.34
get all blog
func GCFGetAllComment ¶ added in v1.3.0
func GCFGetAllCommentt ¶ added in v1.9.34
get all comment
func GCFGetAllCommenttID ¶ added in v1.9.34
get all comment by id
func GCFGetAllContactt ¶ added in v1.9.34
get all contact
func GCFGetAllContacttID ¶ added in v1.9.34
get all contact by id
func GCFGetAllContentBy ¶
func GCFGetAllContentt ¶ added in v1.9.34
get all content
func GCFGetAllContenttID ¶ added in v1.9.34
get all content by id
func GCFGetAllEvent ¶ added in v1.3.0
get all
func GCFGetAllEventGlobal ¶ added in v1.9.34
get all event global
func GCFGetAllEventGlobalID ¶ added in v1.9.34
func GCFGetAllEventGlobalID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
get all event global by id
func GCFGetAllEventt ¶ added in v1.9.34
get all event
func GCFGetAllEventtID ¶ added in v1.9.34
get all event by id
func GCFGetAllGalleryy ¶ added in v1.9.34
get all gallery
func GCFGetAllGalleryyID ¶ added in v1.9.34
get all gallery by id
func GCFGetAllIklann ¶ added in v1.9.34
get all iklan
func GCFGetAllIklannID ¶ added in v1.9.34
get all iklan by id
func GCFGetAllProduct ¶
product
func GCFGetAllProductt ¶ added in v1.9.34
get all product
func GCFGetAllProducttID ¶ added in v1.9.34
get all product by id
func GCFLoginAfterCreate ¶
func GCFLoginAfterCreatee ¶
func GCFLoginAfterCreateee ¶
func GCFLoginAfterCreateeee ¶
func GCFLoginAfterCreater ¶
func GCFLoginFixx ¶ added in v1.3.0
func GCFLoginFixxx ¶ added in v1.3.0
func GCFLoginTest ¶
func GCFPostHandler ¶
func GCFReturnStruct ¶
func GCFUpdateAboutt ¶ added in v1.9.34
update about
func GCFUpdateBlog ¶ added in v1.9.34
update blog
func GCFUpdateCommentt ¶ added in v1.9.34
update comment
func GCFUpdateContactt ¶ added in v1.9.34
update contact
func GCFUpdateContent ¶ added in v1.9.34
update content
func GCFUpdateEventGlobal ¶ added in v1.9.34
func GCFUpdateEventGlobal(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
update event global
func GCFUpdateEventt ¶ added in v1.9.34
update event
func GCFUpdateGalleryy ¶ added in v1.9.34
update gallery
func GCFUpdateHandler ¶
func GCFUpdateIklann ¶ added in v1.9.34
update iklan
func GCFUpdateProduct ¶ added in v1.9.34
func GCFUpdatedContent ¶
func GFCPostHandlerUser ¶
func GFCUpadatedCommnet ¶ added in v1.3.0
func HashPassword ¶
func IsPasswordValid ¶
func PostLinestring ¶ added in v1.3.0
func PostLinestring(mongoconn *mongo.Database, collection string, linestringdata GeoJsonLineString) interface{}
func ReplaceContent ¶
func ReplaceOneDoc ¶
func SetConnection ¶
func UpdatedAbout ¶ added in v1.3.0
func UpdatedBlog ¶ added in v1.9.34
func UpdatedComment ¶ added in v1.3.0
func UpdatedContact ¶ added in v1.3.0
func UpdatedContentt ¶ added in v1.9.34
func UpdatedEvent ¶ added in v1.3.0
func UpdatedEventGlobal ¶ added in v1.3.0
func UpdatedGallery ¶ added in v1.3.0
func UpdatedIklan ¶ added in v1.3.0
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"`
Status bool `json:"status" bson:"status"`
}
func GetAllAbout ¶ added in v1.3.0
type Blog ¶
type Blog struct {
ID int `json:"id" bson:"id"`
Title string `json:"title" bson:"title"`
Tanggal string `json:"tanggal" bson:"tanggal"`
Description string `json:"judul" bson:"judul"`
Content []Content `json:"content" bson:"content"`
Status bool `json:"status" bson:"status"`
}
func GetAllBlog ¶ added in v1.9.34
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 ¶ added in v1.3.0
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 ¶ added in v1.3.0
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 GetAllContentt ¶ added in v1.9.34
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"`
}
func GCFCreateProduct ¶
func GCFCreateProduct(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) Credential
func GCFCreateProducttWithpublickey ¶ added in v1.3.0
func GCFCreateProducttWithpublickey(MONGOCONNSTRINGENV, dbname, collectionname string, publickey string, r *http.Request) Credential
func GCFCreateProducttWithpublickeyFix ¶ added in v1.3.0
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"`
Status bool `json:"status" bson:"status"`
}
func GetAllEvent ¶ added in v1.3.0
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"`
Status bool `json:"status" bson:"status"`
}
func GetAllEventGlobal ¶ added in v1.3.0
func GetAllEventGlobal(mongoconn *mongo.Database, collection string) []EventGlobal
func GetAllEventGlobalId ¶ added in v1.3.0
func GetAllEventGlobalId(mongoconn *mongo.Database, collection string, eventglobaldata EventGlobal) []EventGlobal
type Gallery ¶
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 ¶ added in v1.3.0
type GeoJson ¶
type GeoJson struct {
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry Geometry `json:"geometry" bson:"geometry"`
}
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 ¶ added in v1.3.0
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 GeometryPoint ¶
type GeometryPolygon ¶
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 ¶ added in v1.3.0
type Payload ¶ added in v1.3.0
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 IsTokenValid ¶ added in v1.3.0
pengecekantoken
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 bool `json:"status" bson:"status"`
}
func GetAllProductID ¶ added in v1.9.34
type Properties ¶
type Properties struct {
Name string `json:"name" bson:"name"`
}
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 ¶
type User ¶
type User struct {
Username string `json:"username" bson:"username"`
Password string `json:"password" bson:"password"`
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"`
}