config

package
v0.0.0-...-d233a18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileStorageCacheFileExpireTime

func FileStorageCacheFileExpireTime() string

缓存文件的过期时间。默认为3600(一小时)。单位是秒。

func FileStorageClearExpireCacheFileData

func FileStorageClearExpireCacheFileData() int

定时任务-自动清理过期的缓存文件。单位分钟。默认为1。

func FileStorageDirectoryPath

func FileStorageDirectoryPath() string

文件存储的目录。

func FileStorageDirectoryStorageMaxSize

func FileStorageDirectoryStorageMaxSize() int64

节点目录最大存储容量。默认大小1TB。单位是字节。

func FileStorageFileStorageMaxSize

func FileStorageFileStorageMaxSize() int64

单个文件的最大存储大小。默认大小5M。单位是字节。

func Get

func Get(str string) string

通用获取数据基本方法

func HttpAddr

func HttpAddr() string

deerfs的IP地址。

func HttpMode

func HttpMode() string

func HttpPort

func HttpPort() string

deerfs的端口。

func HttpReadTimeout

func HttpReadTimeout() int

HTTP读超时,单位秒.

func HttpWriteTimeout

func HttpWriteTimeout() int

HTTP写超时,单位秒。

func Init

func Init()

配置初始化

func LogFilename

func LogFilename() string

日志文件的位置

func LogLevel

func LogLevel() string

level options:debug,info,warn,error,dpanic,panic,fatal

func LogMaxage

func LogMaxage() int

保留旧文件的最大天数

func LogMaxbackups

func LogMaxbackups() int

保留旧文件的最大个数

func LogMaxsize

func LogMaxsize() int

在进行切割之前,日志文件的最大大小(以MB为单位)

func MysqlCharset

func MysqlCharset() string

mysql中deerfs的数据库对应编码。

func MysqlDatabase

func MysqlDatabase() string

mysql中deerfs的数据库名称。

func MysqlHost

func MysqlHost() string

mysql的地址。

func MysqlLoc

func MysqlLoc() string

MySQL的时区设置。

func MysqlMaxidleconns

func MysqlMaxidleconns() int

最大链接数。

func MysqlMaxopenconns

func MysqlMaxopenconns() int

最大打开链接。

func MysqlParsetime

func MysqlParsetime() string

查询结果是否自动解析为时间。

func MysqlPassword

func MysqlPassword() string

连接mysql的密码。

func MysqlPort

func MysqlPort() string

mysql的端口。

func MysqlTableprefix

func MysqlTableprefix() string

设置表前缀。

func MysqlUser

func MysqlUser() string

连接mysql的账号。

func OwlcacheAddr

func OwlcacheAddr() string

owlcache(HTTP服务)的地址。

func OwlcacheHttpRequestTimeout

func OwlcacheHttpRequestTimeout() time.Duration

向owlcache(HTTP服务)请求超时的时间。

func OwlcacheKeyStorageExpire

func OwlcacheKeyStorageExpire() string

向owlcache(HTTP服务)中存储文件信息的数据过期时间。单位秒。默认值为0永不过期。

func OwlcacheKeyStoragePrefix

func OwlcacheKeyStoragePrefix() string

向owlcache(HTTP服务)中存储文件信息的Key前缀字符串。默认是“deerfs::”。

func OwlcachePassword

func OwlcachePassword() string

owlcache(HTTP服务)的密码。

func OwlcachePingInterval

func OwlcachePingInterval() int

间隔多久向owlcache发送一次ping命令。单位是秒。默认一秒。

func SystemTagAllowDuplicates

func SystemTagAllowDuplicates() int

是否允许该节点在集群中冗余存储相同文件。0关闭,1开启。默认为关闭。开启后,该节点存储集群中已经存在的文件时会重复存储(按需配置)。

func SystemTagName

func SystemTagName() string

给当前主机的deerfs节点起一个在集群中的唯一名字,例如deerfs1,deerfs2,deerfs3。。。。。。 deerfs启动后会将名字与mysql服务器进行数据更新,一旦名字注册后请谨慎修改名字。

func SystemTagTaskMemoryInfoToLog

func SystemTagTaskMemoryInfoToLog() int

定时任务-自动输出内存信息。单位分钟。默认为5。

func SystemTagUriAddress

func SystemTagUriAddress() string

该节点的资源定位地址

func UploadFormChunksField

func UploadFormChunksField() string

上传区块的字段名。

func UploadFormField

func UploadFormField() string

表单提交字段。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL