Documentation ¶
Index ¶
- type UserController
- func (uc *UserController) CheckToken(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (uc *UserController) Login(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (uc *UserController) Logout(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (uc *UserController) Register(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
UserController represents the controller for operating on the User resource
func NewUserController ¶
func NewUserController(UserRepo repository.IUserRepositoryInterface) UserController
NewUserController creates UserController
func (*UserController) CheckToken ¶
func (uc *UserController) CheckToken(w http.ResponseWriter, r *http.Request, p httprouter.Params)
CheckToken controller function
func (*UserController) Login ¶
func (uc *UserController) Login(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Login controller function
func (*UserController) Logout ¶
func (uc *UserController) Logout(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Logout controller function
func (*UserController) Register ¶
func (uc *UserController) Register(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Register function to register an user recieved in json format
Click to show internal directories.
Click to hide internal directories.