Documentation ¶
Index ¶
- Constants
- Variables
- func NewParams() *params
- type Config
- func (c *Config) AbsRunningDir() string
- func (c *Config) Addr() string
- func (c *Config) AdminIps() []string
- func (c *Config) AlarmReceivers() []string
- func (c *Config) AlarmUrl() string
- func (c *Config) AuthUrl() string
- func (c *Config) AutoRepair() bool
- func (c *Config) BigUploadPathSuffix() string
- func (c *Config) CheckRunningDir()
- func (c *Config) ConfigDir() string
- func (c *Config) CurDate() string
- func (c *Config) DataDir() string
- func (c *Config) DefaultDownload() bool
- func (c *Config) DefaultScene() string
- func (c *Config) DownloadDomain() string
- func (c *Config) DownloadTokenExpire() int
- func (c *Config) DownloadUseToken() bool
- func (c *Config) EnableCrossOrigin() bool
- func (c *Config) EnableCustomPath() bool
- func (c *Config) EnableDistinctFile() bool
- func (c *Config) EnableDownloadAuth() bool
- func (c *Config) EnableFsNotify() bool
- func (c *Config) EnableGoogleAuth() bool
- func (c *Config) EnableMergeSmallFile() bool
- func (c *Config) EnableMigrate() bool
- func (c *Config) EnableTus() bool
- func (c *Config) EnableWebUpload() bool
- func (c *Config) Extensions() []string
- func (c *Config) FileDownloadPathPrefix() string
- func (c *Config) FileMd5() string
- func (c *Config) FileMd5Name() string
- func (c *Config) FileSumArithmetic() string
- func (c *Config) IdleTimeout() int
- func (c *Config) InitInfoMap()
- func (c *Config) LargeDir() string
- func (c *Config) LevelDB() *leveldb.DB
- func (c *Config) LeveldbFile() string
- func (c *Config) LockMap() *pkg.CommonMap
- func (c *Config) LogDir() string
- func (c *Config) LogLevelDB() *leveldb.DB
- func (c *Config) LogLeveldbFile() string
- func (c *Config) MailHost() string
- func (c *Config) MailPassword() string
- func (c *Config) MailUser() string
- func (c *Config) Md5ErrorFile() string
- func (c *Config) Md5QueueFile() string
- func (c *Config) PeerId() string
- func (c *Config) Peers() []string
- func (c *Config) Port() string
- func (c *Config) QueueSize() int
- func (c *Config) ReadHeaderTimeout() int
- func (c *Config) ReadOnly() bool
- func (c *Config) ReadTimeout() int
- func (c *Config) RefreshInterval() int
- func (c *Config) RemoveMd5File() string
- func (c *Config) RenameFile() bool
- func (c *Config) RetryCount() int
- func (c *Config) RtMap() *pkg.CommonMap
- func (c *Config) SceneMap() *pkg.CommonMap
- func (c *Config) Scenes() []string
- func (c *Config) SearchFile() string
- func (c *Config) SearchMap() *pkg.CommonMap
- func (c *Config) SetAddr(host string)
- func (c *Config) SetCurDate(curDate string)
- func (c *Config) SetDownloadDomain()
- func (c *Config) SetPeers(peers []string)
- func (c *Config) SetReadTimeout(seconds int)
- func (c *Config) SetRetryCount(count int)
- func (c *Config) SetSyncDelay(syncDelay int)
- func (c *Config) SetSyncWorker(num int)
- func (c *Config) SetUploadQueueSize(size int)
- func (c *Config) SetUploadWorker(num int)
- func (c *Config) SetWatchChanSize(size int)
- func (c *Config) SetWriteTimeout(seconds int)
- func (c *Config) ShowDir() bool
- func (c *Config) Shutdown()
- func (c *Config) SmallFileSize() int
- func (c *Config) StatFileTotalSizeKey() string
- func (c *Config) StatMap() *pkg.CommonMap
- func (c *Config) StaticDir() string
- func (c *Config) StatisticsFile() string
- func (c *Config) StatisticsFileCountKey() string
- func (c *Config) StoreDir() string
- func (c *Config) StoreDirName() string
- func (c *Config) SumMap() *pkg.CommonMap
- func (c *Config) SyncDelay() int64
- func (c *Config) SyncTimeout() int64
- func (c *Config) SyncWorker() int
- func (c *Config) UploadCounterKey() string
- func (c *Config) UploadQueueSize() int
- func (c *Config) UploadWorker() int
- func (c *Config) WatchChanSize() int
- func (c *Config) WriteTimeout() int
Constants ¶
View Source
const ( MessageClusterIp = "Can only be called by the cluster ip or 127.0.0.1 or admin_ips(cfg.json),current ip:%s" DefaultConfigFile = "/opt/fileServer/conf/fileServer.yml" DefaultConfigFile2 = "./fileServer.yml" )
Variables ¶
View Source
var DefaultUploadPage = `` /* 2670-byte string literal not displayed */
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AbsRunningDir ¶
func (*Config) AlarmReceivers ¶
func (*Config) AutoRepair ¶
func (*Config) BigUploadPathSuffix ¶
func (*Config) CheckRunningDir ¶
func (c *Config) CheckRunningDir()
func (*Config) DefaultDownload ¶
func (*Config) DefaultScene ¶
func (*Config) DownloadDomain ¶
func (*Config) DownloadTokenExpire ¶
func (*Config) DownloadUseToken ¶
func (*Config) EnableCrossOrigin ¶
func (*Config) EnableCustomPath ¶
func (*Config) EnableDistinctFile ¶
func (*Config) EnableDownloadAuth ¶
func (*Config) EnableFsNotify ¶
func (*Config) EnableGoogleAuth ¶
func (*Config) EnableMergeSmallFile ¶
func (*Config) EnableMigrate ¶
func (*Config) EnableWebUpload ¶
func (*Config) Extensions ¶
func (*Config) FileDownloadPathPrefix ¶
func (*Config) FileMd5Name ¶
func (*Config) FileSumArithmetic ¶
func (*Config) IdleTimeout ¶
func (*Config) InitInfoMap ¶
func (c *Config) InitInfoMap()
func (*Config) LeveldbFile ¶
func (*Config) LogLevelDB ¶
func (*Config) LogLeveldbFile ¶
func (*Config) MailPassword ¶
func (*Config) Md5ErrorFile ¶
func (*Config) Md5QueueFile ¶
func (*Config) ReadHeaderTimeout ¶
func (*Config) ReadTimeout ¶
func (*Config) RefreshInterval ¶
func (*Config) RemoveMd5File ¶
func (*Config) RenameFile ¶
func (*Config) RetryCount ¶
func (*Config) SearchFile ¶
func (*Config) SetCurDate ¶
func (*Config) SetDownloadDomain ¶
func (c *Config) SetDownloadDomain()
func (*Config) SetReadTimeout ¶
func (*Config) SetRetryCount ¶
func (*Config) SetSyncDelay ¶
func (*Config) SetSyncWorker ¶
func (*Config) SetUploadQueueSize ¶
func (*Config) SetUploadWorker ¶
func (*Config) SetWatchChanSize ¶
func (*Config) SetWriteTimeout ¶
func (*Config) SmallFileSize ¶
func (*Config) StatFileTotalSizeKey ¶
func (*Config) StatisticsFile ¶
func (*Config) StatisticsFileCountKey ¶
func (*Config) StoreDirName ¶
func (*Config) SyncTimeout ¶
func (*Config) SyncWorker ¶
func (*Config) UploadCounterKey ¶
func (*Config) UploadQueueSize ¶
func (*Config) UploadWorker ¶
func (*Config) WatchChanSize ¶
func (*Config) WriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.