responses

package
v0.0.0-...-7b45942 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RefreshTokenCookieName = "refresh-token"
)

Variables

This section is empty.

Functions

func AuthorizedCategories

func AuthorizedCategories(c *gin.Context, categories []*models.CategoryModel)

func AuthorizedCategory

func AuthorizedCategory(c *gin.Context, category *models.CategoryModel)

func AuthorizedComment

func AuthorizedComment(c *gin.Context, comment *models.CommentModel)

func AuthorizedComments

func AuthorizedComments(c *gin.Context, comments []*models.CommentModel)

func AuthorizedPage

func AuthorizedPage(
	c *gin.Context,
	page *models.PageModel,
	pageContent *models.PageContentModel,
)

func AuthorizedPages

func AuthorizedPages(c *gin.Context, pages []*models.PageModel)

func AuthorizedPost

func AuthorizedPost(
	c *gin.Context,
	post *models.PostModel,
	postContent *models.PostContentModel,
)

func AuthorizedPosts

func AuthorizedPosts(c *gin.Context, posts []*models.PostModel)

func AuthorizedUser

func AuthorizedUser(c *gin.Context, user *models.UserModel)

func AuthorizedUsers

func AuthorizedUsers(c *gin.Context, users []*models.UserModel)

func BadRequest

func BadRequest(c *gin.Context, msg string, err error)

func Basic

func Basic(c *gin.Context, code int, obj interface{})

func FormIncorrect

func FormIncorrect(c *gin.Context, err error)

func IncorrectCategoryId

func IncorrectCategoryId(c *gin.Context, err error)

func IncorrectCommentId

func IncorrectCommentId(c *gin.Context, err error)

func IncorrectNotificationId

func IncorrectNotificationId(c *gin.Context, err error)

func IncorrectPageId

func IncorrectPageId(c *gin.Context, err error)

func IncorrectPostId

func IncorrectPostId(c *gin.Context, err error)

func IncorrectUserId

func IncorrectUserId(c *gin.Context, err error)

func InternalServerError

func InternalServerError(c *gin.Context, err error)

func Me

func Me(c *gin.Context, user *models.UserModel)

func MyNotification

func MyNotification(c *gin.Context, notification *models.NotificationModel)

func MyNotifications

func MyNotifications(c *gin.Context, notifications []*models.NotificationModel)

func MyPage

func MyPage(
	c *gin.Context,
	page *models.PageModel,
	pageContent *models.PageContentModel,
)

func MyPages

func MyPages(c *gin.Context, pages []*models.PageModel)

func MyPost

func MyPost(
	c *gin.Context,
	post *models.PostModel,
	postContent *models.PostContentModel,
)

func MyPosts

func MyPosts(c *gin.Context, posts []*models.PostModel)

func NoContent

func NoContent(c *gin.Context)

func NotFound

func NotFound(c *gin.Context, err error)

func NotImplemented

func NotImplemented(c *gin.Context, err error)

func PublicCategories

func PublicCategories(c *gin.Context, categories []*models.CategoryModel)

func PublicCategory

func PublicCategory(c *gin.Context, category *models.CategoryModel)

func PublicComment

func PublicComment(c *gin.Context, comment *models.CommentModel)

func PublicComments

func PublicComments(c *gin.Context, comments []*models.CommentModel)

func PublicPage

func PublicPage(
	c *gin.Context,
	page *models.PageModel,
	pageContent *models.PageContentModel,
)

func PublicPages

func PublicPages(c *gin.Context, pages []*models.PageModel)

func PublicPost

func PublicPost(
	c *gin.Context,
	post *models.PostModel,
	postContent *models.PostContentModel,
)

func PublicPosts

func PublicPosts(c *gin.Context, posts []*models.PostModel)

func PublicUser

func PublicUser(c *gin.Context, user *models.UserModel)

func PublicUsers

func PublicUsers(c *gin.Context, users []*models.UserModel)

func ResourceStats

func ResourceStats(c *gin.Context, count int64)

func SignedIn

func SignedIn(
	c *gin.Context,
	accessToken string,
	accessClaims *jwt.CustomClaims,
	refreshToken string,
	refreshClaims *jwt.CustomClaims,
)

func SigningOut

func SigningOut(c *gin.Context)

func Success

func Success(c *gin.Context, obj interface{})

func Unauthenticated

func Unauthenticated(c *gin.Context, err error)

func UnauthorizedAction

func UnauthorizedAction(c *gin.Context, err error)

func WrongSignIn

func WrongSignIn(c *gin.Context, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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