Documentation ¶
Index ¶
- Variables
- func GetAllProfile(db *mongo.Database, col string) (profile []model.Profile)
- func GetAllProfileFromNama_user(nama_user string, db *mongo.Database, col string) (profile model.Profile)
- func GetPendidikanFromSekolah(sekolah string, db *mongo.Database, col string) (pendidikan model.Pendidikan)
- func GetPengalamanFromJabatan(jabatan string, db *mongo.Database, col string) (pengalaman model.Pengalaman)
- func GetProfileFromNama_user(nama_user string, db *mongo.Database, col string) (profile model.Profile)
- func GetSkillFromNama(nama string, db *mongo.Database, col string) (skill model.Skill)
- func GetUserFromEmail(email string, db *mongo.Database, col string) (user model.User)
- func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})
- func InsertPendidikan(db *mongo.Database, col string, userid string, sekolah string, lulusan string, ...) (InsertedID interface{})
- func InsertPengalaman(db *mongo.Database, col string, userid string, perusahaan string, ...) (InsertedID interface{})
- func InsertProfile(db *mongo.Database, col string, nama_user string, ...) (InsertedID interface{})
- func InsertSkill(db *mongo.Database, col string, nama string, level string) (InsertedID interface{})
- func InsertUser(db *mongo.Database, col string, username string, email string, pass string) (InsertedID interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "profile_db", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func GetAllProfile ¶ added in v0.0.5
func GetAllProfileFromNama_user ¶ added in v0.0.3
func GetProfileFromNama_user ¶
func GetSkillFromNama ¶
func GetUserFromEmail ¶
func InsertOneDoc ¶
func InsertPendidikan ¶
func InsertPengalaman ¶
func InsertProfile ¶
func InsertProfile(db *mongo.Database, col string, nama_user string, data_pendidikan model.Pendidikan, data_pengalaman model.Pengalaman, skills model.Skill) (InsertedID interface{})
func InsertSkill ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.