Documentation ¶
Index ¶
- func FileStorageCacheFileExpireTime() string
- func FileStorageClearExpireCacheFileData() int
- func FileStorageDirectoryPath() string
- func FileStorageDirectoryStorageMaxSize() int64
- func FileStorageFileStorageMaxSize() int64
- func Get(str string) string
- func HttpAddr() string
- func HttpMode() string
- func HttpPort() string
- func HttpReadTimeout() int
- func HttpWriteTimeout() int
- func Init()
- func LogFilename() string
- func LogLevel() string
- func LogMaxage() int
- func LogMaxbackups() int
- func LogMaxsize() int
- func MysqlCharset() string
- func MysqlDatabase() string
- func MysqlHost() string
- func MysqlLoc() string
- func MysqlMaxidleconns() int
- func MysqlMaxopenconns() int
- func MysqlParsetime() string
- func MysqlPassword() string
- func MysqlPort() string
- func MysqlTableprefix() string
- func MysqlUser() string
- func OwlcacheAddr() string
- func OwlcacheHttpRequestTimeout() time.Duration
- func OwlcacheKeyStorageExpire() string
- func OwlcacheKeyStoragePrefix() string
- func OwlcachePassword() string
- func OwlcachePingInterval() int
- func SystemTagAllowDuplicates() int
- func SystemTagName() string
- func SystemTagTaskMemoryInfoToLog() int
- func SystemTagUriAddress() string
- func UploadFormChunksField() string
- func UploadFormField() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileStorageCacheFileExpireTime ¶
func FileStorageCacheFileExpireTime() string
缓存文件的过期时间。默认为3600(一小时)。单位是秒。
func FileStorageClearExpireCacheFileData ¶
func FileStorageClearExpireCacheFileData() int
定时任务-自动清理过期的缓存文件。单位分钟。默认为1。
func FileStorageDirectoryStorageMaxSize ¶
func FileStorageDirectoryStorageMaxSize() int64
节点目录最大存储容量。默认大小1TB。单位是字节。
func FileStorageFileStorageMaxSize ¶
func FileStorageFileStorageMaxSize() int64
单个文件的最大存储大小。默认大小5M。单位是字节。
func OwlcacheHttpRequestTimeout ¶
向owlcache(HTTP服务)请求超时的时间。
func OwlcacheKeyStorageExpire ¶
func OwlcacheKeyStorageExpire() string
向owlcache(HTTP服务)中存储文件信息的数据过期时间。单位秒。默认值为0永不过期。
func OwlcacheKeyStoragePrefix ¶
func OwlcacheKeyStoragePrefix() string
向owlcache(HTTP服务)中存储文件信息的Key前缀字符串。默认是“deerfs::”。
func SystemTagAllowDuplicates ¶
func SystemTagAllowDuplicates() int
是否允许该节点在集群中冗余存储相同文件。0关闭,1开启。默认为关闭。开启后,该节点存储集群中已经存在的文件时会重复存储(按需配置)。
func SystemTagName ¶
func SystemTagName() string
给当前主机的deerfs节点起一个在集群中的唯一名字,例如deerfs1,deerfs2,deerfs3。。。。。。 deerfs启动后会将名字与mysql服务器进行数据更新,一旦名字注册后请谨慎修改名字。
func SystemTagTaskMemoryInfoToLog ¶
func SystemTagTaskMemoryInfoToLog() int
定时任务-自动输出内存信息。单位分钟。默认为5。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.