controllers

package
v0.0.0-...-52b800c Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AppController

type AppController struct {
	// contains filtered or unexported fields
}

func NewAppController

func NewAppController(
	logger *lib.Logger,
	appService *services.AppService,
) *AppController

func (AppController) Home

func (app AppController) Home(c *fiber.Ctx) error

func (AppController) Login

func (app AppController) Login(c *fiber.Ctx) error

func (AppController) Me

func (app AppController) Me(c *fiber.Ctx) error

func (AppController) Register

func (app AppController) Register(c *fiber.Ctx) error

func (AppController) TokenCheck

func (app AppController) TokenCheck(c *fiber.Ctx) error

func (AppController) TokenRefresh

func (app AppController) TokenRefresh(c *fiber.Ctx) error

func (AppController) UpdateProfile

func (app AppController) UpdateProfile(c *fiber.Ctx) error

type PostsController

type PostsController struct {
	// contains filtered or unexported fields
}

func NewPostsController

func NewPostsController(
	logger *lib.Logger,
	s3Service *services.S3Service,
	postsService *services.PostsService,
) *PostsController

func (PostsController) CreatePost

func (p PostsController) CreatePost(c *fiber.Ctx) error

func (PostsController) DeletePost

func (p PostsController) DeletePost(c *fiber.Ctx) error

func (PostsController) GetMyPostList

func (p PostsController) GetMyPostList(c *fiber.Ctx) error

func (PostsController) GetPostById

func (p PostsController) GetPostById(c *fiber.Ctx) error

func (PostsController) GetPostList

func (p PostsController) GetPostList(c *fiber.Ctx) error

func (PostsController) GetUserPostList

func (p PostsController) GetUserPostList(c *fiber.Ctx) error

func (PostsController) UploadPhoto

func (p PostsController) UploadPhoto(c *fiber.Ctx) error

type UsersController

type UsersController struct {
	// contains filtered or unexported fields
}

func NewUsersController

func NewUsersController(
	logger *lib.Logger,
	usersService *services.UsersService,
) *UsersController

func (UsersController) GetUserByID

func (u UsersController) GetUserByID(c *fiber.Ctx) error

func (UsersController) GetUserList

func (u UsersController) GetUserList(c *fiber.Ctx) error

func (UsersController) GetUserListCursor

func (u UsersController) GetUserListCursor(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳