Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CConfigs ¶
type CConfigs struct { Server CServer `yaml:"server"` // 服务器相关的配置 Sqlite CSqlite `yaml:"sqlite"` // sqlite 数据库相关的配置 Files CFileS `yaml:"files"` // 文件管理相关的配置 Log CLog `yaml:"log"` // 日志相关的配置 }
TConfigs config 配置
var Conf CConfigs
Conf 全局配置
type CFileS ¶
type CFileS struct { CopyIn bool `yaml:"copy_in"` // 是否将文件拷贝到程序目录下 CopyPath string `yaml:"copy_path"` // 文件的根目录 IsSync bool `yaml:"is_sync"` // 是否同步到远程保存 SyncTyps string `yaml:"sync_type"` // 同步的方式,百度云,阿里云 }
CFileS 文件保存相关的设置,默认保存位置,数据的分片,分区,跨分区
Click to show internal directories.
Click to hide internal directories.