users

package
v0.0.0-...-1c7d376 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUser

func DeleteUser(c *fiber.Ctx) error

func FollowUser

func FollowUser(c *fiber.Ctx) error

func GetFollowersByUsername

func GetFollowersByUsername(c *fiber.Ctx) error

func GetFollowingByUsername

func GetFollowingByUsername(c *fiber.Ctx) error

func GetUserByUsername

func GetUserByUsername(c *fiber.Ctx) error

func ListUsers

func ListUsers(c *fiber.Ctx) error

func UnfollowUser

func UnfollowUser(c *fiber.Ctx) error

Types

type Counts

type Counts struct {
	Followers int `json:"followers"`
	Following int `json:"following"`

	// gorm uses int64 for counts
	Posts int64 `json:"posts"`
	Likes int64 `json:"likes"`
}

type UserResponse

type UserResponse struct {
	models.User
	Counts Counts `json:"counts"`
}

Jump to

Keyboard shortcuts

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