Documentation ¶
Index ¶
- Variables
- func AddSuperUser(v *viper.Viper, userName string, password string)
- func CheckAndSpit(e error, silent bool, logToGlog bool) bool
- func CheckConfigFile(configFilePath string, configFileName string, silent bool, logToGlog bool) *viper.Viper
- func CheckConfigFileSilent(configFilePath string, configFileName string) *viper.Viper
- func ConfigFileName() string
- func EnsureDir(dirName string) error
- func IsConfigurationOk(v *viper.Viper, silent bool, logToGlog bool) bool
- func NewConfigFile(configFilePath string, configFileName string) *viper.Viper
- func PrepareServer(v *viper.Viper) *xcore.HypCore
- func RunServer(v *viper.Viper)
- func SpitError(message string, silent bool, logToGlog bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthVerifyHook = func() core.AuthVerifyInterface { return &core.AuthVerify{} }
View Source
var ConfigFileNameWithoutExt = strings.ToLower(z.ExeName())
View Source
var ConfigFilePathFirst = "/home/" + strings.ToLower(z.ExeName())
View Source
var DefaultConfigurationOkHook = func(v *viper.Viper) {
}
View Source
var HypCoreSetupHook = func(v *viper.Viper, hypCore *xcore.HypCore, silent bool, logToGlog bool) bool { return true }
View Source
var IsConfigurationOkHook = func(v *viper.Viper, silent bool, logToGlog bool) bool { return true }
View Source
var OnlineUserDataStoreHook = func() core.OnlineUserDataStoreInterface { return core.NewOnlineUserMemoryMap() }
View Source
var ServeWSHook = func() core.ServeWSInterface { return &core.ServeWSGraphQL{} }
View Source
var StorageEngineHook = func() core.StorageInterface { return &xdb.StorageEngine{} }
Functions ¶
func CheckConfigFile ¶
func CheckConfigFileSilent ¶
func ConfigFileName ¶
func ConfigFileName() string
func IsConfigurationOk ¶
Check if the configuration file is ok
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.