// Profiles returns a map of node profiles for these servers.
Profiles returns a map of node profiles for these servers.
// Profiles returns a map of node profiles for these servers .
func (r Servers) Profiles() map[string]string {
	result := make(map[string]string, len(r))
	for _, server := range r {
		result[server.AdvertiseIP] = server.Role
	}
	return result
}
func ( r Servers ) Profiles ( ) map [ string ] string { result := make ( map [ string ] string , len ( r ) ) for _ , server := range r { result [ server . AdvertiseIP ] = server . Role } return result }
Profiles returns a map of node profiles for these servers.
Profiles returns a map of node profiles for these servers .