Documentation
¶
Index ¶
- Variables
- func ActivateUser(c *fiber.Ctx) error
- func DeleteUserAccount(c *fiber.Ctx) error
- func FollowUser(c *fiber.Ctx) error
- func ForgotPassword(c *fiber.Ctx) error
- func GetProfile(c *fiber.Ctx) error
- func GetUserBadges(c *fiber.Ctx) error
- func GetUserByUsername(c *fiber.Ctx) error
- func GetUserFollowers(c *fiber.Ctx) error
- func GetUserFollowing(c *fiber.Ctx) error
- func GetUserNotificationID(c *fiber.Ctx) error
- func GetUserNotifications(c *fiber.Ctx) error
- func GetUserStats(c *fiber.Ctx) error
- func Login(c *fiber.Ctx) error
- func Logout(c *fiber.Ctx) error
- func NotImplemented(c *fiber.Ctx) error
- func RateLimitting(c *fiber.Ctx, userID string, rateTTL time.Duration, maxUpdates int, ...) bool
- func Refresh(c *fiber.Ctx) error
- func Register(c *fiber.Ctx) error
- func ResetPassword(c *fiber.Ctx) error
- func UnfollowUser(c *fiber.Ctx) error
- func UpdateUserAccount(c *fiber.Ctx) error
- func UpdateUserCustomization(c *fiber.Ctx) error
- func UpdateUserNotificationPrefrences(c *fiber.Ctx) error
- func UpdateUserProfile(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
var ( DB *gorm.DB Redis *storage.RedisClient Logger *logger.Logger EmailCfg = utils.EmailConfig{ SMTPHost: "0.0.0.0", SMTPPort: 1025, SMTPUsername: "", SMTPPassword: "", AppURL: "http://localhost:3000", FromEmail: "no-reply@devpulse.com", } Validator = utils.NewValidator() )
Functions ¶
func ActivateUser ¶
func ActivateUser(c *fiber.Ctx) error
ActivateUser verifies OTP and activates the user
func DeleteUserAccount ¶
func DeleteUserAccount(c *fiber.Ctx) error
DeleteUserAccount deletes the authenticated user's account with Redis optimization
func ForgotPassword ¶
func ForgotPassword(c *fiber.Ctx) error
ForgotPassword handles the password reset request
func GetProfile ¶
func GetProfile(c *fiber.Ctx) error
UserProfile retrieves and returns the authenticated user’s profile, optimized with Redis caching
func GetUserByUsername ¶
func GetUserByUsername(c *fiber.Ctx) error
GetUserByUsername returns a user by username
func GetUserFollowers ¶
func GetUserFollowers(c *fiber.Ctx) error
GetUserFollowers returns user followers
func GetUserFollowing ¶
func GetUserFollowing(c *fiber.Ctx) error
GetUserFollowing returns user following
func GetUserNotificationID ¶
func GetUserNotificationID(c *fiber.Ctx) error
GetUserNotificationID returns user notification by ID
func GetUserNotifications ¶
func GetUserNotifications(c *fiber.Ctx) error
GetUserNotifications returns user notifications
func NotImplemented ¶
func NotImplemented(c *fiber.Ctx) error
NotImplemented is a placeholder for unimplemented routes
func RateLimitting ¶
func ResetPassword ¶
func ResetPassword(c *fiber.Ctx) error
ResetPassword handles the password reset process
func UpdateUserAccount ¶
func UpdateUserAccount(c *fiber.Ctx) error
UpdateUserAccount updates the user's account
func UpdateUserCustomization ¶
func UpdateUserCustomization(c *fiber.Ctx) error
UpdateUserCustomization updates the user's customiztion
func UpdateUserNotificationPrefrences ¶
func UpdateUserNotificationPrefrences(c *fiber.Ctx) error
UpdateUserNotificationPrefrences updates the user's notification preferences
func UpdateUserProfile ¶
func UpdateUserProfile(c *fiber.Ctx) error
UpdateUserProfile updates the authenticated user’s profile with Redis caching and single-query perfection
Types ¶
This section is empty.