Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PathScope string Root http.FileSystem BaseURL string AbsoluteURL string AddrPath string Token string // Anti CSRF token StyleSheet string // Costum stylesheet FrontMatter string // Default frontmatter to save files in HugoEnabled bool // Enables the Hugo plugin for File Manager }
Config is a configuration for browsing in a particualr path.
func Parse ¶
func Parse(c *caddy.Controller) ([]Config, error)
Parse parses the configuration set by the user so it can be used by the middleware
func (Config) CheckToken ¶
CheckToken checs if current token is the same as the one used in the request
func (*Config) GenerateToken ¶
func (c *Config) GenerateToken()
GenerateToken geneerates a new token
Click to show internal directories.
Click to hide internal directories.