Documentation ¶
Index ¶
- Constants
- func AuthorizedCategories(c *gin.Context, categories []*models.CategoryModel)
- func AuthorizedCategory(c *gin.Context, category *models.CategoryModel)
- func AuthorizedComment(c *gin.Context, comment *models.CommentModel)
- func AuthorizedComments(c *gin.Context, comments []*models.CommentModel)
- func AuthorizedPage(c *gin.Context, page *models.PageModel, pageContent *models.PageContentModel)
- func AuthorizedPages(c *gin.Context, pages []*models.PageModel)
- func AuthorizedPost(c *gin.Context, post *models.PostModel, postContent *models.PostContentModel)
- func AuthorizedPosts(c *gin.Context, posts []*models.PostModel)
- func AuthorizedUser(c *gin.Context, user *models.UserModel)
- func AuthorizedUsers(c *gin.Context, users []*models.UserModel)
- func BadRequest(c *gin.Context, msg string, err error)
- func Basic(c *gin.Context, code int, obj interface{})
- func FormIncorrect(c *gin.Context, err error)
- func IncorrectCategoryId(c *gin.Context, err error)
- func IncorrectCommentId(c *gin.Context, err error)
- func IncorrectNotificationId(c *gin.Context, err error)
- func IncorrectPageId(c *gin.Context, err error)
- func IncorrectPostId(c *gin.Context, err error)
- func IncorrectUserId(c *gin.Context, err error)
- func InternalServerError(c *gin.Context, err error)
- func Me(c *gin.Context, user *models.UserModel)
- func MyNotification(c *gin.Context, notification *models.NotificationModel)
- func MyNotifications(c *gin.Context, notifications []*models.NotificationModel)
- func MyPage(c *gin.Context, page *models.PageModel, pageContent *models.PageContentModel)
- func MyPages(c *gin.Context, pages []*models.PageModel)
- func MyPost(c *gin.Context, post *models.PostModel, postContent *models.PostContentModel)
- func MyPosts(c *gin.Context, posts []*models.PostModel)
- func NoContent(c *gin.Context)
- func NotFound(c *gin.Context, err error)
- func NotImplemented(c *gin.Context, err error)
- func PublicCategories(c *gin.Context, categories []*models.CategoryModel)
- func PublicCategory(c *gin.Context, category *models.CategoryModel)
- func PublicComment(c *gin.Context, comment *models.CommentModel)
- func PublicComments(c *gin.Context, comments []*models.CommentModel)
- func PublicPage(c *gin.Context, page *models.PageModel, pageContent *models.PageContentModel)
- func PublicPages(c *gin.Context, pages []*models.PageModel)
- func PublicPost(c *gin.Context, post *models.PostModel, postContent *models.PostContentModel)
- func PublicPosts(c *gin.Context, posts []*models.PostModel)
- func PublicUser(c *gin.Context, user *models.UserModel)
- func PublicUsers(c *gin.Context, users []*models.UserModel)
- func ResourceStats(c *gin.Context, count int64)
- func SignedIn(c *gin.Context, accessToken string, accessClaims *jwt.CustomClaims, ...)
- func SigningOut(c *gin.Context)
- func Success(c *gin.Context, obj interface{})
- func Unauthenticated(c *gin.Context, err error)
- func UnauthorizedAction(c *gin.Context, err error)
- func WrongSignIn(c *gin.Context, err error)
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 AuthorizedPost ¶
func FormIncorrect ¶
func IncorrectCategoryId ¶
func IncorrectCommentId ¶
func IncorrectNotificationId ¶
func IncorrectPageId ¶
func IncorrectPostId ¶
func IncorrectUserId ¶
func InternalServerError ¶
func MyNotification ¶
func MyNotification(c *gin.Context, notification *models.NotificationModel)
func MyNotifications ¶
func MyNotifications(c *gin.Context, notifications []*models.NotificationModel)
func NotImplemented ¶
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 PublicPost ¶
func ResourceStats ¶
func SignedIn ¶
func SignedIn( c *gin.Context, accessToken string, accessClaims *jwt.CustomClaims, refreshToken string, refreshClaims *jwt.CustomClaims, )
func SigningOut ¶
func Unauthenticated ¶
func UnauthorizedAction ¶
func WrongSignIn ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.