Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SpaDistFolder defines the prefix for Vue, so `/dist` is // removed from read functions. SpaDistFolder = "dist" )
Variables ¶
View Source
var ( // ErrFileNotFound is returned by the Open and ReadFile // functions when a file could not be found. ErrFileNotFound = errors.New("file does not exist") // ErrDirNotFound is returned by the ReadDir function when // a directory could not be found. ErrDirNotFound = errors.New("directory does not exist") )
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS interface { // Open opens the named file for reading. If successful, // methods on the returned file can be used for // reading; the associated file descriptor has // mode O_RDONLY. // Returns ErrFileNotFound on failed lookup Open(name string) (fs.File, error) // ReadFile reads the named file and returns the contents. // A successful call returns err == nil, not err == EOF. // Because ReadFile reads the whole file, it does not // treat an EOF from Read as an error to be reported. // Returns ErrFileNotFound on failed lookup. ReadFile(name string) ([]byte, error) // ReadDir reads the named directory, returning all its // directory entries sorted by filename. If an error // occurs reading the directory, ReadDir returns // the entries it was able to read before the // error, along with the error. // Returns ErrDirNotFound on failed lookup ReadDir(name string) ([]fs.DirEntry, error) }
FS defines the set of methods used for interacting with the Verbis file system.
type FileSystem ¶
FileSystem defines the necessary directory structure for Verbis. SPA includes all Vue directories and Web includes web files served by Verbis such as mail templates and error pages.
Click to show internal directories.
Click to hide internal directories.