Documentation ¶
Index ¶
- Constants
- Variables
- func Copy(dst io.Writer, src io.Reader) (written int64, err error)
- func CopyN(dst io.Writer, src io.Reader, n int64) (written int64, err error)
- func NewAliDriveFS(drive *aliyundrive.AliyunDrive, credential *aliyundrive.Credential, rapid bool) webdav.FileSystem
- func NewAliFileInfo(file *models.File) os.FileInfo
- func ServeContent(w http.ResponseWriter, req *http.Request, name string, modtime time.Time, ...)
- type Handler
Constants ¶
View Source
const (
CtxSizeValue = "Size"
)
Variables ¶
View Source
var RapidCache = sync.Map{}
View Source
var RapidCacheFolder = sync.Map{}
Functions ¶
func NewAliDriveFS ¶
func NewAliDriveFS(drive *aliyundrive.AliyunDrive, credential *aliyundrive.Credential, rapid bool) webdav.FileSystem
func ServeContent ¶
func ServeContent(w http.ResponseWriter, req *http.Request, name string, modtime time.Time, content io.ReadSeeker)
Types ¶
Click to show internal directories.
Click to hide internal directories.