Documentation ¶
Index ¶
- type MenuController
- func (mc *MenuController) CreateMenu(w http.ResponseWriter, r *http.Request)
- func (mc *MenuController) DeleteMenu(w http.ResponseWriter, r *http.Request)
- func (mc *MenuController) GetAllMenus(w http.ResponseWriter, r *http.Request)
- func (mc *MenuController) GetMenuByID(w http.ResponseWriter, r *http.Request)
- func (mc *MenuController) UpdateMenu(w http.ResponseWriter, r *http.Request)
- type UserController
- func (uc *UserController) CreateUser(w http.ResponseWriter, r *http.Request)
- func (uc *UserController) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (uc *UserController) GetAllUsers(w http.ResponseWriter, r *http.Request)
- func (uc *UserController) GetUserByID(w http.ResponseWriter, r *http.Request)
- func (uc *UserController) UpdateUser(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuController ¶
type MenuController struct{}
MenuController adalah struct untuk user controller
func NewMenuController ¶
func NewMenuController() *MenuController
NewMenuController adalah fungsi pembuat untuk MenuController
func (*MenuController) CreateMenu ¶
func (mc *MenuController) CreateMenu(w http.ResponseWriter, r *http.Request)
func (*MenuController) DeleteMenu ¶
func (mc *MenuController) DeleteMenu(w http.ResponseWriter, r *http.Request)
func (*MenuController) GetAllMenus ¶
func (mc *MenuController) GetAllMenus(w http.ResponseWriter, r *http.Request)
func (*MenuController) GetMenuByID ¶
func (mc *MenuController) GetMenuByID(w http.ResponseWriter, r *http.Request)
func (*MenuController) UpdateMenu ¶
func (mc *MenuController) UpdateMenu(w http.ResponseWriter, r *http.Request)
type UserController ¶
type UserController struct{}
UserController adalah struct untuk user controller
func NewUserController ¶
func NewUserController() *UserController
NewUserController adalah fungsi pembuat untuk UserController
func (*UserController) CreateUser ¶
func (uc *UserController) CreateUser(w http.ResponseWriter, r *http.Request)
CreateUser adalah handler untuk membuat user baru
func (*UserController) DeleteUser ¶
func (uc *UserController) DeleteUser(w http.ResponseWriter, r *http.Request)
func (*UserController) GetAllUsers ¶
func (uc *UserController) GetAllUsers(w http.ResponseWriter, r *http.Request)
GetAllUsers adalah handler untuk mendapatkan semua user
func (*UserController) GetUserByID ¶
func (uc *UserController) GetUserByID(w http.ResponseWriter, r *http.Request)
func (*UserController) UpdateUser ¶
func (uc *UserController) UpdateUser(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.