Documentation ¶
Index ¶
- Variables
- func DeleteKuesionerByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func GetAllKuesioner(db *mongo.Database, col string) (data []model.Kuesioner)
- func GetAllKuesionerFromEmail(email string, db *mongo.Database, col string) (aksr []model.Kuesioner)
- func GetKuesionerFromID(_id primitive.ObjectID, db *mongo.Database, col string) (ksr model.Kuesioner, errs error)
- func GetKuesionerFromStatus(status string, db *mongo.Database, col string) (ksr model.Kuesioner)
- func GetLokasiFromNama(nama string, db *mongo.Database, col string) (lks model.Lokasi)
- func GetRespondenFromUsia(usia int, db *mongo.Database, col string) (rsp model.Responden)
- func InsertAnswer(db *mongo.Database, col string, question_nomor int, text2 string) (InsertedID interface{})
- func InsertKuesioner(db *mongo.Database, col string, lat float64, long float64, lokasi string, ...) (insertedID primitive.ObjectID, err error)
- func InsertLokasi(db *mongo.Database, col string, nama string, kategori string) (InsertedID interface{})
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertQuestion(db *mongo.Database, col string, nomor int, text string, options string) (InsertedID interface{})
- func InsertResponden(db *mongo.Database, col string, nama string, jenis_kelamin string, usia int, ...) (InsertedID interface{})
- func InsertSurvey(db *mongo.Database, col string, kode int, title string, soal model.Question) (InsertedID interface{})
- func LogAdmin(db *mongo.Database, col string, username string, password string) (authenticated bool, err error)
- func UpdateKuesioner(db *mongo.Database, col string, id primitive.ObjectID, lat float64, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "data_db", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func DeleteKuesionerByID ¶ added in v0.0.8
func GetAllKuesioner ¶
func GetAllKuesionerFromEmail ¶ added in v0.0.2
func GetKuesionerFromID ¶ added in v0.0.9
func GetKuesionerFromStatus ¶
func GetLokasiFromNama ¶ added in v0.0.2
func GetRespondenFromUsia ¶ added in v0.0.2
func InsertAnswer ¶ added in v0.0.2
func InsertKuesioner ¶
func InsertLokasi ¶ added in v0.0.2
func InsertOneDoc ¶
func InsertQuestion ¶ added in v0.0.2
func InsertResponden ¶
func InsertSurvey ¶ added in v0.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.