controller

package
v0.0.0-...-d1c2e5b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizedUser

func AuthorizedUser(c echo.Context) bool

Types

type BackendHandler

type BackendHandler struct {
	InitHandler InitHandler
	// contains filtered or unexported fields
}

func InitiateHandler

func InitiateHandler(cfg *configs.Config, logger logger.Logger) *BackendHandler

func (*BackendHandler) CreateANewSubscription

func (b *BackendHandler) CreateANewSubscription(c echo.Context) error

func (*BackendHandler) FollowAUser

func (b *BackendHandler) FollowAUser(c echo.Context) error

func (*BackendHandler) GetAllFollower

func (b *BackendHandler) GetAllFollower(c echo.Context) error

func (*BackendHandler) GetAllFollowing

func (b *BackendHandler) GetAllFollowing(c echo.Context) error

func (*BackendHandler) GetAllPostsByUserID

func (b *BackendHandler) GetAllPostsByUserID(c echo.Context) error

func (*BackendHandler) GetFile

func (b *BackendHandler) GetFile(c echo.Context) error

func (*BackendHandler) HealthcheckHandler

func (b *BackendHandler) HealthcheckHandler(c echo.Context) error

func (*BackendHandler) HomePage

func (b *BackendHandler) HomePage(c echo.Context) error

func (*BackendHandler) Posts

func (b *BackendHandler) Posts(c echo.Context) error

func (*BackendHandler) RouteUploadFile

func (b *BackendHandler) RouteUploadFile(c echo.Context) error

func (*BackendHandler) ShowUserDashboard

func (b *BackendHandler) ShowUserDashboard(c echo.Context) error

func (*BackendHandler) UnfollowAUser

func (b *BackendHandler) UnfollowAUser(c echo.Context) error

func (*BackendHandler) UploadFile

func (b *BackendHandler) UploadFile(c echo.Context) error

func (*BackendHandler) UserLogin

func (b *BackendHandler) UserLogin(c echo.Context) error

func (*BackendHandler) UserLogout

func (b *BackendHandler) UserLogout(c echo.Context) error

func (*BackendHandler) UserProfiles

func (b *BackendHandler) UserProfiles(c echo.Context) error

func (*BackendHandler) UserSignup

func (b *BackendHandler) UserSignup(c echo.Context) error

type InitHandler

type InitHandler interface {
	Healthcheck(c echo.Context)
	RouteUploadFile(c echo.Context)
	UploadFile(c echo.Context)
	UserLogin(c echo.Context)
	UserSignup(c echo.Context)
}

type ReturnData

type ReturnData struct {
	UserData []models.User
}

type ReturnPostData

type ReturnPostData struct {
	PostInfo []models.Post
}

type ReturnUserData

type ReturnUserData struct {
	User     models.User
	PostData []models.Post
}

Jump to

Keyboard shortcuts

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