controllers

package
v0.0.0-...-f1d9a45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL