Documentation ¶
Index ¶
- type AuthController
- func (ac *AuthController) ForgotPassword(ctx *gin.Context)
- func (ac *AuthController) LogoutUser(ctx *gin.Context)
- func (ac *AuthController) RefreshAccessToken(ctx *gin.Context)
- func (ac *AuthController) SignInUser(ctx *gin.Context)
- func (ac *AuthController) SignUpUser(ctx *gin.Context)
- func (ac *AuthController) VerifyEmail(ctx *gin.Context)
- type PostController
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthController ¶
type AuthController struct {
// contains filtered or unexported fields
}
func NewAuthController ¶
func NewAuthController(authService services.AuthService, userService services.UserService, ctx context.Context, collection *mongo.Collection) AuthController
func (*AuthController) ForgotPassword ¶
func (ac *AuthController) ForgotPassword(ctx *gin.Context)
func (*AuthController) LogoutUser ¶
func (ac *AuthController) LogoutUser(ctx *gin.Context)
func (*AuthController) RefreshAccessToken ¶
func (ac *AuthController) RefreshAccessToken(ctx *gin.Context)
func (*AuthController) SignInUser ¶
func (ac *AuthController) SignInUser(ctx *gin.Context)
func (*AuthController) SignUpUser ¶
func (ac *AuthController) SignUpUser(ctx *gin.Context)
func (*AuthController) VerifyEmail ¶
func (ac *AuthController) VerifyEmail(ctx *gin.Context)
type PostController ¶
type PostController struct {
// contains filtered or unexported fields
}
func NewPostController ¶
func NewPostController(postService services.PostService) PostController
func (*PostController) CreatePost ¶
func (pc *PostController) CreatePost(ctx *gin.Context)
func (*PostController) DeletePost ¶
func (pc *PostController) DeletePost(ctx *gin.Context)
func (*PostController) FindPostById ¶
func (pc *PostController) FindPostById(ctx *gin.Context)
func (*PostController) FindPosts ¶
func (pc *PostController) FindPosts(ctx *gin.Context)
func (*PostController) UpdatePost ¶
func (pc *PostController) UpdatePost(ctx *gin.Context)
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func NewUserController ¶
func NewUserController(userService services.UserService) UserController
func (*UserController) GetMe ¶
func (uc *UserController) GetMe(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.