Documentation ¶
Index ¶
Constants ¶
View Source
const ( RootDir = "." ParentDir = ".." )
Variables ¶
This section is empty.
Functions ¶
func FormatSize ¶ added in v1.3.0
Types ¶
type Controller ¶ added in v1.5.0
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶ added in v1.5.0
func NewController(fs fs.FS, exclude *regexp.Regexp) *Controller
func (*Controller) FilesHTML ¶ added in v1.5.3
func (c *Controller) FilesHTML() http.Handler
func (*Controller) FilesJSON ¶ added in v1.5.3
func (c *Controller) FilesJSON() http.Handler
func (*Controller) FilesText ¶ added in v1.5.3
func (c *Controller) FilesText() http.Handler
func (*Controller) Health ¶ added in v1.5.3
func (c *Controller) Health() http.Handler
func (*Controller) IsAllowed ¶ added in v1.5.0
func (c *Controller) IsAllowed(file string) bool
Click to show internal directories.
Click to hide internal directories.