Documentation ¶
Index ¶
- func CacheControl(c *fiber.Ctx) error
- func NoIndex(c *fiber.Ctx) error
- func Protected(c *fiber.Ctx) error
- func ProtectedCanViewPost(c *fiber.Ctx) error
- func ProtectedCommentPost(c *fiber.Ctx) error
- func ProtectedCommenterOnly(c *fiber.Ctx) error
- func ProtectedPosterOnly(c *fiber.Ctx) error
- func ProtectedPubOrFollow(c *fiber.Ctx) error
- func ProtectedSelfOnly(c *fiber.Ctx) error
- func ServerStats(c *fiber.Ctx) error
- func Session(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtectedCanViewPost ¶
func ProtectedCanViewPost(c *fiber.Ctx) error
ProtectedCanViewPost only allow access to user who can view post
func ProtectedCommentPost ¶
func ProtectedCommentPost(c *fiber.Ctx) error
ProtectedCommentPost only allow comment to be viewed with
func ProtectedCommenterOnly ¶
func ProtectedCommenterOnly(c *fiber.Ctx) error
func ProtectedPosterOnly ¶
func ProtectedPosterOnly(c *fiber.Ctx) error
ProtectedPosterOnly only allow access to post owner
func ProtectedPubOrFollow ¶
func ProtectedPubOrFollow(c *fiber.Ctx) error
ProtectedPubOrFollow only allow access to user if public or is being followed or is self
Checks id's of :userName & user session
func ProtectedSelfOnly ¶
func ProtectedSelfOnly(c *fiber.Ctx) error
ProtectedSelfOnly only allow access to user with same username as :userName
Checks id's of :userName & user session
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.