Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CentralHost ¶
func CentralHost() string
func CheckCreateDataDirectory ¶
func CheckCreateDataDirectory()
func InitLogger ¶
func InitLogger()
func IsPathExists ¶
func SetAppConfigFilePath ¶
func SetAppConfigFilePath(path string)
Types ¶
type AppConfig ¶
type AppConfig struct { ServerPort int `json:"server_port"` ServerMode string `json:"server_mode"` CentralServer string `json:"central_server"` CentralPort int `json:"central_port"` CentralProtocol string `json:"central_protocol"` DatabasePath string `json:"database_path"` }
func GetAppConfig ¶
func GetAppConfig() *AppConfig
func (*AppConfig) GetServerMode ¶
func (*AppConfig) IsDebugMode ¶
type StorageConfig ¶
type StorageConfig struct { StorageRootDir string `json:"storage-root-dir"` TempDir string `json:"temp-dir"` }
func GetStorageConfig ¶
func GetStorageConfig() *StorageConfig
Click to show internal directories.
Click to hide internal directories.