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 MaxAllowed(n int) gin.HandlerFunc
- func SearchIndex(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 ¶
func DownloadRateLimiter ¶
func DownloadRateLimiter(limiter stream.Limiter) gin.HandlerFunc
func ForceHttps ¶
func MaxAllowed ¶
func MaxAllowed(n int) gin.HandlerFunc
func SearchIndex ¶
func StoragesLoaded ¶
func UploadRateLimiter ¶
func UploadRateLimiter(limiter stream.Limiter) gin.HandlerFunc
Types ¶
type ResponseWriterWrapper ¶
type ResponseWriterWrapper struct {
gin.ResponseWriter
WrapWriter io.Writer
}
Click to show internal directories.
Click to hide internal directories.