Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TempDir = os.TempDir() BackupDir = filepath.Join(TempDir, "sonic-backup") + string(os.PathSeparator) BackupMarkdownDir = filepath.Join(TempDir, "sonic-backup-markdown") + string(os.PathSeparator) DataExportDir = filepath.Join(TempDir, "sonic-data-export") + string(os.PathSeparator) ResourcesDir, _ = filepath.Abs("./resources") )
Functions ¶
func LogToConsole ¶ added in v1.1.4
func LogToConsole() bool
Types ¶
type Config ¶
type PostgreSQL ¶
type Sonic ¶
type Sonic struct { Mode string `mapstructure:"mode"` LogMode LogMode `mapstructure:"log_mode"` WorkDir string `mapstructure:"work_dir"` UploadDir string LogDir string `mapstructure:"log_dir"` TemplateDir string `mapstructure:"template_dir"` ThemeDir string AdminResourcesDir string AdminURLPath string `mapstructure:"admin_url_path"` }
Click to show internal directories.
Click to hide internal directories.