func InitialConfigure() error {
	if err := gslog.SetMinimumLevel(config.LogLevel); err != nil {
		return err
	}
	gslog.Infof("Setting logging point to %s", config.LogFile)
	if err := gslog.SetLogFile(config.LogFile); err != nil {
		return err
	}

	gslog.Info("Loading up the secrets")
	secrets := config.Secrets
	auth.SetGlobalSecrets(secrets)

	if err := SetupStorage(); err != nil {
		return err
	}

	listens := config.ListenEndpoints
	for i := range listens {
		if err := listenHandler(listens[i]); err != nil {
			return err
		}
	}

	if err := dist.Clusterize(); err != nil {
		return err
	}

	return nil
}
// Does all configuration for the hyrax node
Does all configuration for the hyrax node
// Does all configuration for the hyrax node
func InitialConfigure() error {
	if err := gslog.SetMinimumLevel(config.LogLevel); err != nil {
		return err
	}
	gslog.Infof("Setting logging point to %s", config.LogFile)
	if err := gslog.SetLogFile(config.LogFile); err != nil {
		return err
	}
	gslog.Info("Loading up the secrets")
	secrets := config.Secrets
	auth.SetGlobalSecrets(secrets)
	if err := SetupStorage(); err != nil {
		return err
	}
	listens := config.ListenEndpoints
	for i := range listens {
		if err := listenHandler(listens[i]); err != nil {
			return err
		}
	}
	if err := dist.Clusterize(); err != nil {
		return err
	}
	return nil
}
func InitialConfigure ( ) error { if err := gslog . SetMinimumLevel ( config . LogLevel ) ; err != nil { return err } gslog . Infof ( " " , config . LogFile ) if err := gslog . SetLogFile ( config . LogFile ) ; err != nil { return err } gslog . Info ( " " ) secrets := config . Secrets auth . SetGlobalSecrets ( secrets ) if err := SetupStorage ( ) ; err != nil { return err } listens := config . ListenEndpoints for i := range listens { if err := listenHandler ( listens [ i ] ) ; err != nil { return err } } if err := dist . Clusterize ( ) ; err != nil { return err } return nil }
Does all configuration for the hyrax node
Does all configuration for the hyrax node