Documentation ¶
Index ¶
Constants ¶
View Source
const ( SPEEDFS_PATH_ENV = "SPEEDFS_PATH" SPEEDFS_PATH_DEFAULT = "~/.speedfs" FILE_DIR_NAME = "file" CONF_DIR_NAME = "config" CONF_FILE_NAME = "config.json" LOG_DIR_NAME = "log" PID_FILE_NAME = "speedfs.pid" DEFAULT_SERVER_PORT = 9999 )
Variables ¶
View Source
var ( BUILD_TIME string GIT_COMMIT string GO_VERSION string )
View Source
var ( SPEEDFS_PATH string GloableConfig Config )
Functions ¶
func ConfFilePath ¶
func ConfFilePath() string
func GlobalLogger ¶
func LoadGlobalConfig ¶
func LoadGlobalConfig() error
func OtherPeers ¶
func OtherPeers() []string
func PidFilePath ¶
func PidFilePath() string
func PrintSysteminfo ¶
func PrintSysteminfo()
func SpeedfsPath ¶
func SpeedfsPath() string
Types ¶
Click to show internal directories.
Click to hide internal directories.