package
Version:
v0.1.0-alpha
Opens a new window with list of versions in this module.
Published: May 5, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DefaultConfigBase = "nanafs.conf"
)
type Api struct {
Enable bool `json:"enable"`
Host string `json:"host"`
Port int `json:"port"`
Pprof bool `json:"pprof"`
}
type Config struct {
Meta Meta `json:"meta"`
Storages []Storage `json:"storages"`
CacheDir string `json:"cache_dir,omitempty"`
CacheSize int64 `json:"cache_size,omitempty"`
Debug bool `json:"debug"`
ApiConfig Api `json:"api"`
FsConfig Fs `json:"fs"`
}
type Fs struct {
Enable bool `json:"enable"`
RootPath string `json:"root_path"`
DisplayName string `json:"display_name,omitempty"`
}
type Meta struct {
Type string `json:"type"`
Path string `json:"path"`
}
type Storage struct {
ID string `json:"id"`
LocalDir string `json:"local_dir,omitempty"`
CacheDir string `json:"cache_dir,omitempty"`
CacheSize int64 `json:"cache_size,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.