Documentation ¶
Index ¶
- func BuatBarangKeDb(barang *model.Barang) error
- func BuatTableBarang(db *pg.DB) error
- func BuatTableUser(db *pg.DB) error
- func BuatUserKeDb(user *model.User) error
- func DeleteBarang(id string) bool
- func DeleteUser(id string) (bool, error)
- func EditBarang(id string, barang *model.Barang) (*model.Barang, error)
- func EditUser(id string, newUser *model.EditUser) (*model.User, error)
- func EditUserPassword(id string, newPass *model.EditUserPassword) (bool, error)
- func InitiateDB(db *pg.DB)
- func NyariBarangDiDb() []*model.Barang
- func NyariBarangPakeId(id string) (*model.Barang, error)
- func NyariUserDiDb() []*model.User
- func NyariUserPakeId(id string) (*model.User, error)
- type LoginData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuatTableBarang ¶
func BuatTableUser ¶
func DeleteBarang ¶
func DeleteUser ¶
func EditUserPassword ¶
func EditUserPassword(id string, newPass *model.EditUserPassword) (bool, error)
func InitiateDB ¶
func NyariBarangDiDb ¶
func NyariUserDiDb ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.