app

package
v0.0.0-...-b68b127 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 AddSuperUser

func AddSuperUser(v *viper.Viper, userName string, password string)

func CheckAndSpit

func CheckAndSpit(e error, silent bool, logToGlog bool) bool

func CheckConfigFile

func CheckConfigFile(configFilePath string,
	configFileName string,
	silent bool, logToGlog bool) *viper.Viper

func CheckConfigFileSilent

func CheckConfigFileSilent(configFilePath string, configFileName string) *viper.Viper

func ConfigFileName

func ConfigFileName() string

func EnsureDir

func EnsureDir(dirName string) error

func IsConfigurationOk

func IsConfigurationOk(v *viper.Viper, silent bool, logToGlog bool) bool

Check if the configuration file is ok

func NewConfigFile

func NewConfigFile(configFilePath string, configFileName string) *viper.Viper

func PrepareServer

func PrepareServer(v *viper.Viper) *xcore.HypCore

func RunServer

func RunServer(v *viper.Viper)

func SpitError

func SpitError(message string, silent bool, logToGlog bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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