Documentation
¶
Index ¶
- func DeleteOneDoc(_id primitive.ObjectID, db *mongo.Database, col string) error
- func Encode(id primitive.ObjectID, role, privateKey string) (string, error)
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privateKey, publicKey string)
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetID(r *http.Request) string
- func InsertOneDoc(db *mongo.Database, col string, doc interface{}) (insertedID primitive.ObjectID, err error)
- func MongoConnect(MongoString, dbname string) *mongo.Database
- func SaveFileToGithub(usernameGhp, emailGhp, repoGhp, path string, r *http.Request) (string, error)
- func SendWhatsAppConfirmation(phone string, db *mongo.Database, message string) error
- func UpdateOneDoc(id primitive.ObjectID, db *mongo.Database, col string, doc interface{}) (err error)
- type Credential
- type Magang
- type Mahasiswa
- type MahasiswaMagang
- func GetDetailMahasiswaMagangFromID(_id primitive.ObjectID, db *mongo.Database) (mahasiswa_magang MahasiswaMagang, err error)
- func GetMahasiswaMagangByMahasiswa(idmahasiswa primitive.ObjectID, db *mongo.Database) (mahasiswa_magang MahasiswaMagang, err error)
- func GetMahasiswaMagangFromID(_id primitive.ObjectID, db *mongo.Database) (mahasiswa_magang MahasiswaMagang, err error)
- type Mentor
- type Mitra
- type Password
- type Payload
- type Pembimbing
- type Report
- type Response
- type Task
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey() (privateKey, publicKey string)
func GetAllDocs ¶
crud
func InsertOneDoc ¶
func SaveFileToGithub ¶ added in v0.2.55
save file to github
func SendWhatsAppConfirmation ¶ added in v0.2.76
Types ¶
type Credential ¶
type Magang ¶
type Magang struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Posisi string `bson:"posisi,omitempty" json:"posisi,omitempty"`
Mitra Mitra `bson:"mitra,omitempty" json:"mitra,omitempty"`
Lokasi string `bson:"lokasi,omitempty" json:"lokasi,omitempty"`
CreatedAt primitive.DateTime `bson:"createdat,omitempty" json:"createdat,omitempty"`
DeskripsiMagang string `bson:"deskripsimagang,omitempty" json:"deskripsimagang,omitempty"`
InfoTambahanMagang string `bson:"infotambahanmagang,omitempty" json:"infotambahanmagang,omitempty"`
Expired string `bson:"expired,omitempty" json:"expired,omitempty"`
}
func GetMagangFromID ¶
get magang
type Mahasiswa ¶
type Mahasiswa struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
NamaLengkap string `bson:"namalengkap,omitempty" json:"namalengkap,omitempty"`
TanggalLahir string `bson:"tanggallahir,omitempty" json:"tanggallahir,omitempty"`
JenisKelamin string `bson:"jeniskelamin,omitempty" json:"jeniskelamin,omitempty"`
NIM string `bson:"nim,omitempty" json:"nim,omitempty"`
PerguruanTinggi string `bson:"perguruantinggi,omitempty" json:"perguruantinggi,omitempty"`
Prodi string `bson:"prodi,omitempty" json:"prodi,omitempty"`
SeleksiKampus int `bson:"seleksikampus,omitempty" json:"seleksikampus,omitempty"`
ImageUrl string `bson:"imageurl,omitempty" json:"imageurl,omitempty"`
Akun User `bson:"akun,omitempty" json:"akun,omitempty"`
}
func GetMahasiswaFromAkun ¶
type MahasiswaMagang ¶
type MahasiswaMagang struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Mahasiswa Mahasiswa `bson:"mahasiswa,omitempty" json:"mahasiswa,omitempty"`
Magang Magang `bson:"magang,omitempty" json:"magang,omitempty"`
Pembimbing Pembimbing `bson:"pembimbing,omitempty" json:"pembimbing,omitempty"`
Mentor Mentor `bson:"mentor,omitempty" json:"mentor,omitempty"`
SeleksiBerkas int `bson:"seleksiberkas,omitempty" json:"seleksiberkas,omitempty"`
SeleksiWewancara int `bson:"seleksiwewancara,omitempty" json:"seleksiwewancara,omitempty"`
Status int `bson:"status,omitempty" json:"status,omitempty"`
}
func GetDetailMahasiswaMagangFromID ¶
func GetDetailMahasiswaMagangFromID(_id primitive.ObjectID, db *mongo.Database) (mahasiswa_magang MahasiswaMagang, err error)
get mahasiswa_magang
func GetMahasiswaMagangByMahasiswa ¶ added in v0.2.60
type Mentor ¶ added in v0.1.0
type Mentor struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
NamaLengkap string `bson:"namalengkap,omitempty" json:"namalengkap,omitempty"`
NIK string `bson:"nik,omitempty" json:"nik,omitempty"`
Mitra Mitra `bson:"mitra,omitempty" json:"mitra,omitempty"`
ImageUrl string `bson:"imageurl,omitempty" json:"imageurl,omitempty"`
Akun User `bson:"akun,omitempty" json:"akun,omitempty"`
}
func GetMentorFromAkun ¶ added in v0.1.3
type Mitra ¶
type Mitra struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
NamaNarahubung string `bson:"namanarahubung,omitempty" json:"namanarahubung,omitempty"`
NoHpNarahubung string `bson:"nohpnarahubung,omitempty" json:"nohpnarahubung,omitempty"`
Nama string `bson:"nama,omitempty" json:"nama,omitempty"`
Kategori string `bson:"kategori,omitempty" json:"kategori,omitempty"`
SektorIndustri string `bson:"sektorindustri,omitempty" json:"sektorindustri,omitempty"`
Tentang string `bson:"tentang,omitempty" json:"tentang,omitempty"`
Alamat string `bson:"alamat,omitempty" json:"alamat,omitempty"`
Website string `bson:"website,omitempty" json:"website,omitempty"`
MoU int `bson:"mou,omitempty" json:"mou,omitempty"`
ImageUrl string `bson:"imageurl,omitempty" json:"imageurl,omitempty"`
Akun User `bson:"akun,omitempty" json:"akun,omitempty"`
}
func GetMitraFromAkun ¶
type Payload ¶
type Pembimbing ¶ added in v0.1.0
type Pembimbing struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
NamaLengkap string `bson:"namalengkap,omitempty" json:"namalengkap,omitempty"`
NIK string `bson:"nik,omitempty" json:"nik,omitempty"`
Prodi string `bson:"prodi,omitempty" json:"prodi,omitempty"`
ImageUrl string `bson:"imageurl,omitempty" json:"imageurl,omitempty"`
Akun User `bson:"akun,omitempty" json:"akun,omitempty"`
}
func GetPembimbingFromAkun ¶ added in v0.1.3
func GetPembimbingFromID ¶ added in v0.1.3
get pembimbing
type Report ¶ added in v0.1.0
type Report struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
MahasiswaMagang MahasiswaMagang `bson:"mahasiswamagang,omitempty" json:"mahasiswamagang,omitempty"`
Task string `bson:"task,omitempty" json:"task,omitempty"`
Deskripsi string `bson:"deskripsi,omitempty" json:"deskripsi,omitempty"`
Hasil string `bson:"hasil,omitempty" json:"hasil,omitempty"`
Kehadiran string `bson:"kehadiran,omitempty" json:"kehadiran,omitempty"`
CreatedAt primitive.DateTime `bson:"createdat,omitempty" json:"createdat,omitempty"`
UpdatedAt primitive.DateTime `bson:"updatedat,omitempty" json:"updatedat,omitempty"`
Feedback string `bson:"feedback,omitempty" json:"feedback,omitempty"`
NilaiMentor int `bson:"nilaimentor,omitempty" json:"nilaimentor,omitempty"`
NilaiPembimbing int `bson:"nilaipembimbing,omitempty" json:"nilaipembimbing,omitempty"`
}
type Task ¶ added in v0.2.60
type Task struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
MahasiswaMagang MahasiswaMagang `bson:"mahasiswamagang,omitempty" json:"mahasiswamagang,omitempty"`
Tasks []string `bson:"tasks,omitempty" json:"tasks,omitempty"`
}
type User ¶
type User struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Phone string `bson:"phone,omitempty" json:"phone,omitempty"`
Password string `bson:"password,omitempty" json:"password,omitempty"`
Confirmpassword string `bson:"confirmpass,omitempty" json:"confirmpass,omitempty"`
Salt string `bson:"salt,omitempty" json:"salt,omitempty"`
Role string `bson:"role,omitempty" json:"role,omitempty"`
}
func GetUserFromEmail ¶
func GetUserFromID ¶
get user
Click to show internal directories.
Click to hide internal directories.