Documentation ¶
Index ¶
- Variables
- func InsertAbout(db string, about Aboutsurat) (insertedID interface{})
- func InsertKategori(db string, kategori Kategorisurat) (insertedID interface{})
- func InsertLokasi(db string, lokasi Lokasisurat) (insertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertSurat(db string, surat Surat) (insertedID interface{})
- func InsertSuratChat(db *mongo.Database, collect string, Isisurat string, Subject string) (InsertedID interface{})
- func InsertSuratData(db *mongo.Database, collect string, Isisurat string, Subject string) (InsertedID interface{})
- func InsertUser(db string, user UserSurat) (insertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type Aboutsurat
- type Kategorisurat
- type Lokasisurat
- type Returnsurat
- type Surat
- type UserSurat
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertAbout ¶
func InsertAbout(db string, about Aboutsurat) (insertedID interface{})
func InsertKategori ¶
func InsertKategori(db string, kategori Kategorisurat) (insertedID interface{})
func InsertLokasi ¶
func InsertLokasi(db string, lokasi Lokasisurat) (insertedID interface{})
func InsertOneDoc ¶
func InsertSurat ¶
func InsertSuratChat ¶
func InsertSuratData ¶
func InsertUser ¶
func MongoConnect ¶
Types ¶
type Aboutsurat ¶
type Kategorisurat ¶
type Lokasisurat ¶
type Returnsurat ¶
type Surat ¶
type Surat struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Isisurat string `bson:"isisurat" json:"isisurat"` Subject string `bson:"subject" json:"subject"` }
func GetEmailData ¶
func GetoSurato ¶
Click to show internal directories.
Click to hide internal directories.