Documentation ¶
Index ¶
- Variables
- func InsertAbout(db string, about About) (insertedID interface{})
- func InsertContacus(db string, contacus Contacus) (insertedID interface{})
- func InsertDashboard(db string, dashboard Dashboard) (insertedID interface{})
- func InsertDosen(db string, dosen Dosen) (insertedID interface{})
- func InsertMahasiswa(db string, mahasiswa Mahasiswa) (insertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
- type About
- type Contacus
- type Dashboard
- type Dosen
- type Mahasiswa
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func InsertAbout ¶
func InsertContacus ¶
func InsertDashboard ¶
func InsertDosen ¶
func InsertMahasiswa ¶
func InsertOneDoc ¶
func MongoConnect ¶
Types ¶
type About ¶
type About struct { Pertanyaan string `bson:"pertanyaan" json:"pertanyaan"` Jawaban string `bson:"jawaban" json:"jawaban"` }
func GetDataAbout ¶ added in v0.0.14
type Contacus ¶
type Contacus struct { Phone_number string `bson:"phone_number" json:"phone_number"` Email string `bson:"email" json:"email"` }
func GetDataContacus ¶ added in v0.0.14
type Dashboard ¶
type Dashboard struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Username string `bson:"Username" json:"Username"` Email string `bson:"Email" json:"Email"` Location string `bson:"Location" json:"Location"` Orders string `bson:"Orders" json:"Orders"` Lastorders string `bson:"Lastorders" json:"Lastorders"` Totalspent string `bson:"Totalspent" json:"Totalspent"` Sks string `bson:"Sks" json:"Sks"` }
func GetDataDashboard ¶ added in v0.0.14
Click to show internal directories.
Click to hide internal directories.