Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
Types ¶
type Args ¶
type Args struct { Host string `arg:"-H,--host" help:"host address"` Port int `arg:"-p,--port" help:"port"` Username string `arg:"-u,--user" help:"username"` Verbose bool `arg:"-v,--verbose" help:"verbose output"` Config string `arg:"-c,--config" help:"config file"` EnabledUI bool `arg:"--with-ui" help:"enable web ui"` }
type AuthService ¶
type WebdavServer ¶
type WebdavServer struct { AuthService AuthService Host string Port int Path string FsDir string Middlewares []func(http.HandlerFunc) http.HandlerFunc }
func NewWebdavServer ¶ added in v0.1.0
func NewWebdavServer(authService AuthService, host string, port int, path string, fsDir string) *WebdavServer
func (*WebdavServer) AddMiddleware ¶ added in v0.2.35
func (s *WebdavServer) AddMiddleware(middleware func(http.HandlerFunc) http.HandlerFunc)
func (*WebdavServer) Listen ¶
func (s *WebdavServer) Listen()
Click to show internal directories.
Click to hide internal directories.