Documentation ¶
Overview ¶
Package filemanager provides middleware for managing files in a directory when directory path is requested instead of a specific file. Based on browse middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileManager ¶
type FileManager struct { Next httpserver.Handler Configs []config.Config }
FileManager is an http.Handler that can show a file listing when directories in the given paths are specified.
func (FileManager) ServeHTTP ¶
func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
ServeHTTP determines if the request is for this plugin, and if all prerequisites are met.
Click to show internal directories.
Click to hide internal directories.