Documentation ¶
Index ¶
- func DeleteUser(Mongoconn *mongo.Database, colname, username string) (deleted interface{}, err error)
- func DeleteUserforAdmin(Mongoenv, publickey, dbname, colname string, r *http.Request) string
- func GetDataUserForAdmin(PublicKey, MongoEnv, dbname, colname string, r *http.Request) string
- func GetOneMahasiswa(PublicKey, MongoEnv, dbname, colname string, r *http.Request) string
- func InsertDataMahsiswa(MongoConn *mongo.Database, colname string, mhs Mahasiswa) (InsertedID interface{})
- func InsertMahasiswa(MongoEnv, dbname, colname, publickey string, r *http.Request) string
- func IsAdmin(Tokenstr, PublicKey string) bool
- func IsDosen(TokenStr, Publickey string) bool
- func IsMahsiswa(TokenStr, Publickey string) bool
- func Login(Privatekey, MongoEnv, dbname, Colname string, r *http.Request) string
- func Register(Mongoenv, dbname string, r *http.Request) string
- func ResetPassword(MongoEnv, publickey, dbname, colname string, r *http.Request) string
- func UpdateDataMahasiswa(MongoEnv, dbname, publickey string, r *http.Request) string
- func UpdateMahasiswa(Mongoenv, dbname string, ctx context.Context, mhs Mahasiswa) (UpdateId interface{})
- func UpdatePassword(mongoconn *mongo.Database, user arbi.User) (Updatedid interface{})
- type Admin
- type Dosen
- type FeedBack
- type FeedMahasiswa
- type Mahasiswa
- type Prodi
- type RequestUsers
- type Time
- type Updated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func DeleteUserforAdmin ¶
func GetDataUserForAdmin ¶
func GetOneMahasiswa ¶
func InsertDataMahsiswa ¶
func InsertMahasiswa ¶
func IsMahsiswa ¶
func ResetPassword ¶
func UpdateDataMahasiswa ¶
func UpdateMahasiswa ¶
Types ¶
type Dosen ¶
type Dosen struct { DosenId string `json:"mahasiswaid" bson:"mahasiswaid,omitempty"` Nidn string `json:"nidn" bson:"nidn,omitempty"` Nama string `json:"nama" bson:"nama,omitempty"` Email string `json:"email" bson:"email,omitempty"` Phone string `json:"phone" bson:"phone,omitempty"` Relation arbi.User `json:"relation" bson:"relation,omitempty"` WaktuMasuk string `json:"waktumasuk" bson:"waktumasuk,omitempty"` WaktuKeluar string `json:"waktukeluar" bson:"waktukeluar,omitempty"` }
type FeedMahasiswa ¶
type Mahasiswa ¶
type Mahasiswa struct { MahasiswaId string `json:"mahasiswaid" bson:"mahasiswaid,omitempty"` Npm string `json:"npm" bson:"npm,omitempty"` Nama string `json:"nama" bson:"nama,omitempty"` Email string `json:"email" bson:"email,omitempty"` Phone string `json:"phone" bson:"phone,omitempty"` Prodi Prodi `json:"prodi" bson:"prodi,omitempty"` Relation arbi.User `json:"relation" bson:"relation,omitempty"` WaktuMasuk string `json:"waktumasuk" bson:"waktumasuk,omitempty"` WaktuKeluar string `json:"waktukeluar" bson:"waktukeluar,omitempty"` }
type RequestUsers ¶
type RequestUsers struct {
Username string `json:"username"`
}
Click to show internal directories.
Click to hide internal directories.