Documentation ¶
Index ¶
- Constants
- func AddVersionHeader(c *gin.Context)
- func AuthMiddleware(c *gin.Context)
- func GetDatabase(c *gin.Context) *gorm.DB
- func GetToken(c *gin.Context) string
- func HasTransaction(c *gin.Context)
- func NeedsDatabase(c *gin.Context)
- func Recover(c *gin.Context)
- func RequiresPermission(perm *pufferpanel.Scope) gin.HandlerFunc
- func ResolveServerNode(c *gin.Context)
- func ResolveServerPanel(c *gin.Context)
- func ResponseAndRecover(c *gin.Context)
- func ValidateJWT(c *gin.Context)
Constants ¶
View Source
const WWWAuthenticateHeader = "WWW-Authenticate"
View Source
const WWWAuthenticateHeaderContents = "Bearer realm=\"\""
Variables ¶
This section is empty.
Functions ¶
func AddVersionHeader ¶
func AuthMiddleware ¶
func HasTransaction ¶
func NeedsDatabase ¶
func RequiresPermission ¶
func RequiresPermission(perm *pufferpanel.Scope) gin.HandlerFunc
func ResolveServerNode ¶
func ResolveServerPanel ¶
func ResponseAndRecover ¶
func ValidateJWT ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.