Documentation ¶
Index ¶
- func CheckLink(f lib.File, dat map[string]interface{}, cfg TServContext, t *testing.T, ...)
- func DavHandler(fb *lib.FileBrowser)
- func Handler(m *fb.FileBrowser) http.Handler
- func ProcessParams(c *fb.Context) (isShares bool)
- func ServeDav(c *lib.Context, w http.ResponseWriter, r *http.Request)
- func SetupHandler(cfg *config.GlobalConfig) http.Handler
- func ValidateListingResp(rs *http.Response, t *testing.T, count int) *lib.File
- type Claims
- type ModifyRequest
- type ModifyUserRequest
- type TServContext
- func (tc *TServContext) BuildUrl(r int, params map[string]interface{}, isShare bool) *url.URL
- func (tc *TServContext) InitServ(t *testing.T)
- func (tc *TServContext) MakeRequest(r int, params map[string]interface{}, usr *config.UserConfig, t *testing.T, ...) (*http.Request, *http.Response, *http.Transport)
- func (tc *TServContext) ValidateDownloadLink(l string, t *testing.T) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DavHandler ¶ added in v0.8.6
func DavHandler(fb *lib.FileBrowser)
func Handler ¶
func Handler(m *fb.FileBrowser) http.Handler
Handler returns a function compatible with web.HandleFunc.
func ProcessParams ¶ added in v0.8.3
set router, and all other params to the context, returns true in case request are about shares
func ServeDav ¶ added in v0.8.3
ServeHTTP determines if the request is for this plugin, and if all prerequisites are met.
func SetupHandler ¶ added in v0.8.6
func SetupHandler(cfg *config.GlobalConfig) http.Handler
Types ¶
type ModifyRequest ¶ added in v0.8.6
type ModifyUserRequest ¶ added in v0.8.6
type ModifyUserRequest struct { ModifyRequest Data *fb.UserModel `json:"data"` }
type TServContext ¶ added in v0.8.6
func (*TServContext) InitServ ¶ added in v0.8.6
func (tc *TServContext) InitServ(t *testing.T)
run internal server for testing and set specific variables at TContext
func (*TServContext) MakeRequest ¶ added in v0.8.6
func (*TServContext) ValidateDownloadLink ¶ added in v0.8.6
func (tc *TServContext) ValidateDownloadLink(l string, t *testing.T) bool
Click to show internal directories.
Click to hide internal directories.