// loadRedisArgs loads the configuration for which redis hosts to monitor from either
// the environment or as passed from program arguments. Returns the list of host addrs,
// passwords, and their aliases.
loadRedisArgs loads the configuration for which redis hosts to monitor from either
the environment or as passed from program arguments. Returns the list of host addrs,
passwords, and their aliases.
// loadRedisArgs loads the configuration for which redis hosts to monitor from either // the environment or as passed from program arguments . Returns the list of host addrs // passwords and their aliases .
func LoadRedisArgs(addr, password, alias, separator string) ([]string, []string, []string) {
	if addr == "" {
		addr = "redis://localhost:6379"
	}
	addrs := strings.Split(addr, separator)
	passwords := strings.Split(password, separator)
	for len(passwords) < len(addrs) {
		passwords = append(passwords, passwords[0])
	}
	aliases := strings.Split(alias, separator)
	for len(aliases) < len(addrs) {
		aliases = append(aliases, aliases[0])
	}
	return addrs, passwords, aliases
}
func LoadRedisArgs ( addr , password , alias , separator string ) ( [ ] string , [ ] string , [ ] string ) { if addr == " " { addr = " " } addrs := strings . Split ( addr , separator ) passwords := strings . Split ( password , separator ) for len ( passwords ) < len ( addrs ) { passwords = append ( passwords , passwords [ 0 ] ) } aliases := strings . Split ( alias , separator ) for len ( aliases ) < len ( addrs ) { aliases = append ( aliases , aliases [ 0 ] ) } return addrs , passwords , aliases }
loadRedisArgs loads the configuration for which redis hosts to monitor from either
the environment or as passed from program arguments.
loadRedisArgs loads the configuration for which redis hosts to monitor from either the environment or as passed from program arguments .