module

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 GetAllProfile(db *mongo.Database, col string) (profile []model.Profile)

func GetAllProfileFromNama_user added in v0.0.3

func GetAllProfileFromNama_user(nama_user string, db *mongo.Database, col string) (profile model.Profile)

func GetPendidikanFromSekolah

func GetPendidikanFromSekolah(sekolah string, db *mongo.Database, col string) (pendidikan model.Pendidikan)

func GetPengalamanFromJabatan

func GetPengalamanFromJabatan(jabatan string, db *mongo.Database, col string) (pengalaman model.Pengalaman)

func GetProfileFromNama_user

func GetProfileFromNama_user(nama_user string, db *mongo.Database, col string) (profile model.Profile)

func GetSkillFromNama

func GetSkillFromNama(nama string, db *mongo.Database, col string) (skill model.Skill)

func GetUserFromEmail

func GetUserFromEmail(email string, db *mongo.Database, col string) (user model.User)

func InsertOneDoc

func InsertOneDoc(db *mongo.Database, collection string, doc interface{}) (insertedID interface{})

func InsertPendidikan

func InsertPendidikan(db *mongo.Database, col string, userid string, sekolah string, lulusan string, tahunmulai string, tahunselesai string) (InsertedID interface{})

func InsertPengalaman

func InsertPengalaman(db *mongo.Database, col string, userid string, perusahaan string, jabatan string, deskripsi string, tahunmulai string, tahunselesai string) (InsertedID interface{})

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

func InsertSkill(db *mongo.Database, col string, nama string, level string) (InsertedID interface{})

func InsertUser

func InsertUser(db *mongo.Database, col string, username string, email string, pass string) (InsertedID interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL