Documentation ¶
Index ¶
- Variables
- func InsertDataAkreditas(db string, dataakreditas DataAkreditas) (insertedID interface{})
- func InsertDataProgramStudi(db string, dataprogramstudi DataProgramStudi) (insertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func InsertProfile(db string, profile Profile) (insertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type DataAkreditas
- type DataProgramStudi
- type Profile
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertDataAkreditas ¶
func InsertDataAkreditas(db string, dataakreditas DataAkreditas) (insertedID interface{})
func InsertDataProgramStudi ¶
func InsertDataProgramStudi(db string, dataprogramstudi DataProgramStudi) (insertedID interface{})
func InsertOneDoc ¶
func InsertProfile ¶
func MongoConnect ¶
Types ¶
type DataAkreditas ¶
type DataAkreditas struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Perguruan_Tinggi string `bson:"perguruan_tinggi" json:"perguruan_tinggi"` Program_studi string `bson:"program_studi" json:"program_studi"` Peringkat string `bson:"peringkat" json:"peringkat"` Status string `bson:"status" json:"status"` }
func GetDataAkreditas ¶
func GetDataAkreditas(stats string) (data []DataAkreditas)
type DataProgramStudi ¶
type DataProgramStudi struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Program_studi string `bson:"program_studi" json:"program_studi"` Program string `bson:"program" json:"program"` }
func GetDataProgramStudi ¶
func GetDataProgramStudi(stats string) (data []DataProgramStudi)
Click to show internal directories.
Click to hide internal directories.