func (c *Configuration) Validate() error {

	if c.Database == "" {
		return errors.EValidation("Missing Database", nil)
	}

	if c.MongoURL == "" {
		return errors.EValidation("Missing ConnectionString", nil)
	}

	return nil
}
// Validate if configuration is valid
Validate if configuration is valid
// Validate if configuration is valid
func (c *Configuration) Validate() error {
	if c.Database == "" {
		return errors.EValidation("Missing Database", nil)
	}
	if c.MongoURL == "" {
		return errors.EValidation("Missing ConnectionString", nil)
	}
	return nil
}
func ( c * Configuration ) Validate ( ) error { if c . Database == " " { return errors . EValidation ( " " , nil ) } if c . MongoURL == " " { return errors . EValidation ( " " , nil ) } return nil }
Validate if configuration is valid
Validate if configuration is valid