Documentation
¶
Index ¶
- func AdminAuth() func(c *gin.Context)
- func CORS() gin.HandlerFunc
- func Cache() func(c *gin.Context)
- func CriticalRateLimit() func(c *gin.Context)
- func Distribute() func(c *gin.Context)
- func DownloadRateLimit() func(c *gin.Context)
- func GlobalAPIRateLimit() func(c *gin.Context)
- func GlobalWebRateLimit() func(c *gin.Context)
- func RelayPanicRecover() gin.HandlerFunc
- func RequestId() func(c *gin.Context)
- func RootAuth() func(c *gin.Context)
- func SetUpLogger(server *gin.Engine)
- func SetupContextForSelectedChannel(c *gin.Context, channel *model.Channel, modelName string)
- func TokenAuth() func(c *gin.Context)
- func TurnstileCheck() gin.HandlerFunc
- func UploadRateLimit() func(c *gin.Context)
- func UserAuth() func(c *gin.Context)
- type ModelRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS() gin.HandlerFunc
func CriticalRateLimit ¶
func Distribute ¶
func DownloadRateLimit ¶
func GlobalAPIRateLimit ¶
func GlobalWebRateLimit ¶
func RelayPanicRecover ¶
func RelayPanicRecover() gin.HandlerFunc
func SetUpLogger ¶
func TurnstileCheck ¶
func TurnstileCheck() gin.HandlerFunc
func UploadRateLimit ¶
Types ¶
type ModelRequest ¶
type ModelRequest struct {
Model string `json:"model"`
}
Click to show internal directories.
Click to hide internal directories.