handlers

package
v0.0.0-...-702fcad Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundHTTPStatusError = errors.New("NotFoundHTTPStatusError")

Functions

func CreateCollectivesPostHandle

func CreateCollectivesPostHandle(c *fiber.Ctx) error

Create Collectives Post Handle

func CreatePostHandle

func CreatePostHandle(c *fiber.Ctx) error

CreatePostHandle handle create a new post

func DeletePostHandle

func DeletePostHandle(c *fiber.Ctx) error

DeletePostHandle handle delete a post

func DisableCommentHandle

func DisableCommentHandle(c *fiber.Ctx) error

DisableCommentHandle disble post's commnet

func DisableSharingHandle

func DisableSharingHandle(c *fiber.Ctx) error

DisableSharingHandle disble post's sharing

func GeneratePostURLKeyHandle

func GeneratePostURLKeyHandle(c *fiber.Ctx) error

GeneratePostURLKeyHandle handle get post URL key

func GetFeedHandle

func GetFeedHandle(c *fiber.Ctx) error

GetFeedHandle

func GetPostByURLKeyHandle

func GetPostByURLKeyHandle(c *fiber.Ctx) error

GetPostByURLKeyHandle handle get a post

func GetPostHandle

func GetPostHandle(c *fiber.Ctx) error

GetPostHandle handle get a post

func IncrementCommentHandle

func IncrementCommentHandle(c *fiber.Ctx) error

IncrementCommentHandle handle create a new post

func IncrementScoreHandle

func IncrementScoreHandle(c *fiber.Ctx) error

IncrementScoreHandle handle create a new post

func InitPostIndexHandle

func InitPostIndexHandle(c *fiber.Ctx) error

InitPostIndexHandle handle create a new post

func QueryCollectivesPostHandle

func QueryCollectivesPostHandle(c *fiber.Ctx) error

Query Collective's Posts

func QueryPostHandle

func QueryPostHandle(c *fiber.Ctx) error

QueryPostHandle handle query on post

func StringRand

func StringRand(length int) string

StringRand

func StringWithCharset

func StringWithCharset(length int, charset string) string

func UpdateCollectivesPostProfileHandle deprecated

func UpdateCollectivesPostProfileHandle(c *fiber.Ctx) error

Deprecated: UpdateCollectivesPostProfileHandle

func UpdatePostHandle

func UpdatePostHandle(c *fiber.Ctx) error

UpdatePostHandle handle create a new post

func UpdatePostProfileHandle deprecated

func UpdatePostProfileHandle(c *fiber.Ctx) error

Deprecated: UpdatePostProfileHandle

Types

type PostFeedQueryModel

type PostFeedQueryModel struct {
	Search           string      `query:"search"`
	Page             int64       `query:"page"`
	Owner            []uuid.UUID `query:"owner"`
	CollectiveOwners []uuid.UUID `query:"collectiveOwners"`
	Type             int         `query:"type"`
}

type PostQueryCollectivesModel

type PostQueryCollectivesModel struct {
	Search       string      `query:"search"`
	Page         int64       `query:"page"`
	Owner        []uuid.UUID `query:"owner"`
	Type         int         `query:"type"`
	CollectiveId uuid.UUID   `query:"collectiveId"`
}

type PostQueryModel

type PostQueryModel struct {
	Search       string      `query:"search"`
	Page         int64       `query:"page"`
	Owner        []uuid.UUID `query:"owner"`
	Type         int         `query:"type"`
	CollectiveId uuid.UUID   `query:"collectiveId"`
}

type ResultAsync

type ResultAsync struct {
	Result []byte
	Error  error
}

Async Call Stuff To Propagate Context

type UserInfoInReq

type UserInfoInReq struct {
	UserId      uuid.UUID `json:"uid"`
	Username    string    `json:"email"`
	DisplayName string    `json:"displayName"`
	SocialName  string    `json:"socialName"`
	Avatar      string    `json:"avatar"`
	Banner      string    `json:"banner"`
	TagLine     string    `json:"tagLine"`
	SystemRole  string    `json:"role"`
	CreatedDate int64     `json:"createdDate"`
}

Jump to

Keyboard shortcuts

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