MCPcopy
hub / github.com/filebrowser/filebrowser / data

Struct data

http/data.go:20–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18type handleFunc func(w http.ResponseWriter, r *http.Request, d *data) (int, error)
19
20type data struct {
21 *runner.Runner
22 settings *settings.Settings
23 server *settings.Server
24 store *storage.Storage
25 user *users.User
26 raw interface{}
27
28 // checkerPrefix is prepended to every path before evaluating rules. It is
29 // set when the user's filesystem has been rebased onto a subdirectory (as
30 // done for public shares), so that rules — which are relative to the user's
31 // original scope — are still matched against the real path instead of the
32 // rebased one. Empty for regular requests.
33 checkerPrefix string
34}
35
36// Check implements rules.Checker.
37func (d *data) Check(path string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected