Documentation
¶
Index ¶
- func Auth(c *gin.Context)
- func AuthAdmin(c *gin.Context)
- func AuthNotGuest(c *gin.Context)
- func Authn(c *gin.Context)
- func Down(verifyFunc func(string, string) error) func(c *gin.Context)
- func DownloadRateLimiter(limiter stream.Limiter) gin.HandlerFunc
- func ForceHttps(c *gin.Context)
- func FsUp(c *gin.Context)
- func HandleSession(c *gin.Context, user *model.User) bool
- func MaxAllowed(n int) gin.HandlerFunc
- func SearchIndex(c *gin.Context)
- func SessionRefresh(c *gin.Context)
- func StoragesLoaded(c *gin.Context)
- func UploadRateLimiter(limiter stream.Limiter) gin.HandlerFunc
- type ResponseWriterWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
Auth is a middleware that checks if the user is logged in. if token is empty, set user to guest
func AuthNotGuest ¶ added in v3.39.0
func DownloadRateLimiter ¶ added in v3.43.0
func DownloadRateLimiter(limiter stream.Limiter) gin.HandlerFunc
func ForceHttps ¶ added in v3.19.0
func HandleSession ¶ added in v3.52.0
HandleSession verifies device sessions and stores context values.
func MaxAllowed ¶ added in v3.7.1
func MaxAllowed(n int) gin.HandlerFunc
func SearchIndex ¶ added in v3.6.0
func SessionRefresh ¶ added in v3.52.0
SessionRefresh updates session's last_active after successful requests.
func StoragesLoaded ¶
func UploadRateLimiter ¶ added in v3.43.0
func UploadRateLimiter(limiter stream.Limiter) gin.HandlerFunc
Types ¶
type ResponseWriterWrapper ¶ added in v3.43.0
type ResponseWriterWrapper struct {
gin.ResponseWriter
WrapWriter io.Writer
}
Click to show internal directories.
Click to hide internal directories.