Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorResponse ¶
func NewErrorResponse(err error) interface{}
func NewSuccessResponse ¶
func NewSuccessResponse(data interface{}) interface{}
Types ¶
type Controller ¶
type Controller struct {
JWTToken *auth.JWTToken
Env *envconfig.EnvConfig
Enforcer *casbin.Enforcer
Router gin.IRouter
CreateUserInport createuser.Inport
ShowUserByIDInport showuserbyid.Inport
ShowUserByEmailInport showuserbyemail.Inport
ShowUserByUsernameInport showuserbyusername.Inport
ShowAllUsersInport showallusers.Inport
UpdateUserInport updateuser.Inport
DeleteUserInport deleteuser.Inport
ActivationUserInport activationuser.Inport
ResetActivationUserInport resetactivationuser.Inport
LoginUserInport loginuser.Inport
ShowAllUserPostsInport showalluserposts.Inport
UpdatePasswordInport updatepassword.Inport
ForgotPasswordInport forgotpassword.Inport
UploadUserPhotoProfileInport uploaduserphotoprofile.Inport
}
func (*Controller) CreateUserHandler ¶
func (r *Controller) CreateUserHandler(inputPort createuser.Inport) gin.HandlerFunc
createuserHandler ...
func (*Controller) RegisterRouter ¶
func (r *Controller) RegisterRouter()
RegisterRouter registering all the router
Source Files
¶
- handler_activationuser.go
- handler_createuser.go
- handler_deleteuser.go
- handler_forgotpassword.go
- handler_loginuser.go
- handler_resetactivationuser.go
- handler_showalluserposts.go
- handler_showallusers.go
- handler_showuserbyemail.go
- handler_showuserbyid.go
- handler_showuserbyusername.go
- handler_updatepassword.go
- handler_updateuser.go
- handler_uploaduserphotoprofile.go
- interceptor.go
- response.go
- router.go
Click to show internal directories.
Click to hide internal directories.