Documentation
¶
Overview ¶
Package files is used to get paths to different files Mycorrhiza uses. Also see cfg.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CategoriesJSON ¶
func CategoriesJSON() string
CategoriesJSON returns the path to the JSON categories storage.
func FileInRoot ¶
FileInRoot returns full path for the given filename if it was placed in the root of the wiki structure.
func HyphaeDir ¶
func HyphaeDir() string
HyphaeDir returns the path to hyphae storage. A separate function is needed to easily know where a general storage path is needed rather than a concrete Git or the whole wiki storage path, so that we could easily refactor things later if we'll ever support different storages.
func InterwikiJSON ¶
func InterwikiJSON() string
func PrepareWikiRoot ¶
func PrepareWikiRoot() error
PrepareWikiRoot ensures all needed directories and files exist and have correct permissions.
func TokensJSON ¶
func TokensJSON() string
TokensJSON returns the path to the JSON user tokens storage.
func UserCredentialsJSON ¶
func UserCredentialsJSON() string
UserCredentialsJSON returns the path to the JSON user credentials storage.
Types ¶
This section is empty.