Documentation
¶
Overview ¶
Package webdav 实现 WebDAV 文件服务:多用户、每个用户映射到独立目录,可设为只读。
Index ¶
- Constants
- type CertSource
- type Module
- func (m *Module) ID() string
- func (m *Module) ImportLucky(doc luckyimport.Document, opts luckyimport.Options) (*luckyimport.Report, error)
- func (m *Module) Init(env module.Env) error
- func (m *Module) Routes(r module.Router)
- func (m *Module) Start(context.Context) error
- func (m *Module) Stop() error
- func (m *Module) Title() string
- type Settings
- type User
Constants ¶
View Source
const ID = "webdav"
ID 是模块标识。
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertSource ¶
type CertSource interface {
GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error)
}
CertSource 提供 HTTPS 证书。
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module 是 WebDAV 模块。
func (*Module) ImportLucky ¶
func (m *Module) ImportLucky(doc luckyimport.Document, opts luckyimport.Options) (*luckyimport.Report, error)
ImportLucky 实现 luckyimport.Importer,迁移监听参数与用户(导入后保持停用)。
Click to show internal directories.
Click to hide internal directories.