Documentation ¶
Index ¶
- func DeleteParkiran(Mongoenv, publickey, dbname, colname string, r *http.Request) string
- func DeleteParkiranData(mongoconn *mongo.Database, colname, PakId string) (deletedid interface{}, err error)
- func DeleteUser(Mongoconn *mongo.Database, colname, username string) (deleted interface{}, err error)
- func DeleteUserforAdmin(Mongoenv, publickey, dbname, colname string, r *http.Request) string
- func GetAllParkiran(PublicKey, Mongoenv, dbname, colname string, r *http.Request) string
- func GetDataUserForAdmin(PublicKey, MongoEnv, dbname, colname string, r *http.Request) string
- func GetOneParkiran(PublicKey, MongoEnv, dbname, colname string, r *http.Request) string
- func InsertDataParkiran(MongoConn *mongo.Database, colname string, emp Parkiran) (InsertedID interface{})
- func InsertParkiran(MongoEnv, dbname, colname, publickey string, r *http.Request) string
- func IsAdmin(Tokenstr, PublicKey string) bool
- func IsPK(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 UpdateDataParkiran(MongoEnv, dbname, publickey string, r *http.Request) string
- func UpdateParkiran(Mongoconn *mongo.Database, ctx context.Context, emp Parkiran) (UpdateId interface{}, err error)
- func UpdatePassword(mongoconn *mongo.Database, user pkb.User) (Updatedid interface{})
- type Cred
- type Parkiran
- type ReqUsers
- type RequestParkiran
- type ResponseBack
- type ResponseParkiran
- type ResponseParkiranBanyak
- type Updated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteParkiran ¶
Delete Data
func DeleteParkiranData ¶
func DeleteUser ¶
func DeleteUserforAdmin ¶
Delete User
func GetAllParkiran ¶
GetAll
func GetDataUserForAdmin ¶
Get Data User
func GetOneParkiran ¶ added in v0.0.2
Get One
func InsertDataParkiran ¶
func InsertParkiran ¶
Insert data
func ResetPassword ¶
Reset Password
func UpdateDataParkiran ¶
Update data
func UpdateParkiran ¶
Types ¶
type Parkiran ¶
type Parkiran struct { ParkiranId string `json:"parkiranid" bson:"parkiranid,omitempty"` Nama string `json:"nama" bson:"nama,omitempty"` NPM string `json:"npm" bson:"npm,omitempty"` Jurusan string `json:"jurusan" bson:"jurusan,omitempty"` NamaKendaraan string `json:"namakendaraan" bson:"namakendaraan,omitempty"` NomorKendaraan string `json:"nomorkendaraan" bson:"nomorkendaraan"` JenisKendaraan string `json:"jeniskendaraan" bson:"jeniskendaraan"` Akun pkb.User `json:"akun" bson:"akun,omitempty"` }
func GetAllParkiranData ¶
type RequestParkiran ¶
type RequestParkiran struct {
ParkiranId string `json:"parkiranid"`
}
type ResponseBack ¶
type ResponseParkiran ¶
type ResponseParkiranBanyak ¶
Click to show internal directories.
Click to hide internal directories.