Documentation ¶
Index ¶
- Constants
- Variables
- func AuthRequired() gin.HandlerFunc
- func BeforeShareDownload() gin.HandlerFunc
- func CSRFCheck() gin.HandlerFunc
- func CSRFInit() gin.HandlerFunc
- func CacheControl() gin.HandlerFunc
- func CaptchaRequired(configName string) gin.HandlerFunc
- func CheckShareUnlocked() gin.HandlerFunc
- func CurrentUser() gin.HandlerFunc
- func FrontendFileHandler() gin.HandlerFunc
- func HashID(IDType int) gin.HandlerFunc
- func IsAdmin() gin.HandlerFunc
- func IsFunctionEnabled(key string) gin.HandlerFunc
- func MasterMetadata() gin.HandlerFunc
- func MobileRequestOnly() gin.HandlerFunc
- func MockHelper() gin.HandlerFunc
- func OSSCallbackAuth() gin.HandlerFunc
- func OneDriveCallbackAuth() gin.HandlerFunc
- func QiniuCallbackAuth() gin.HandlerFunc
- func RemoteCallbackAuth() gin.HandlerFunc
- func Sandbox() gin.HandlerFunc
- func Session(secret string) gin.HandlerFunc
- func ShareAvailable() gin.HandlerFunc
- func ShareCanPreview() gin.HandlerFunc
- func ShareOwner() gin.HandlerFunc
- func SignRequired(authInstance auth.Auth) gin.HandlerFunc
- func SlaveRPCSignRequired(nodePool cluster.Pool) gin.HandlerFunc
- func StaticResourceCache() gin.HandlerFunc
- func UpyunCallbackAuth() gin.HandlerFunc
- func UseSlaveAria2Instance(clusterController cluster.Controller) gin.HandlerFunc
- func UseUploadSession(policyType string) gin.HandlerFunc
- func ValidateSourceLink() gin.HandlerFunc
- func WebDAVAuth() gin.HandlerFunc
- func WopiAccessValidation(w wopi.Client, store cache.Driver) gin.HandlerFunc
- func WopiWriteAccess() gin.HandlerFunc
Constants ¶
View Source
const (
CallbackFailedStatusCode = http.StatusUnauthorized
)
View Source
const (
WopiSessionCtx = "wopi_session"
)
Variables ¶
View Source
var ContextMock = make(map[string]interface{})
ContextMock 测试时模拟Context
View Source
var SessionMock = make(map[string]interface{})
SessionMock 测试时模拟Session
View Source
var Store sessions.Store
Store session存储
Functions ¶
func CaptchaRequired ¶
func CaptchaRequired(configName string) gin.HandlerFunc
CaptchaRequired 验证请求签名
func IsFunctionEnabled ¶
func IsFunctionEnabled(key string) gin.HandlerFunc
IsFunctionEnabled 当功能未开启时阻止访问
func OneDriveCallbackAuth ¶
func OneDriveCallbackAuth() gin.HandlerFunc
OneDriveCallbackAuth OneDrive回调签名验证
func Sandbox ¶
func Sandbox() gin.HandlerFunc
func SlaveRPCSignRequired ¶
func SlaveRPCSignRequired(nodePool cluster.Pool) gin.HandlerFunc
func StaticResourceCache ¶
func StaticResourceCache() gin.HandlerFunc
StaticResourceCache 使用静态资源缓存策略
func UseSlaveAria2Instance ¶
func UseSlaveAria2Instance(clusterController cluster.Controller) gin.HandlerFunc
UseSlaveAria2Instance 从机用于获取对应主机节点的Aria2实例
func ValidateSourceLink ¶
func ValidateSourceLink() gin.HandlerFunc
ValidateSourceLink validates if the perm source link is a valid redirect link
func WopiAccessValidation ¶
func WopiWriteAccess ¶
func WopiWriteAccess() gin.HandlerFunc
WopiWriteAccess validates if write access is obtained.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.