MCPcopy
hub / github.com/grafana/dskit / GetAddresses

Method GetAddresses

ring/replication_set.go:537–543  ·  view source on GitHub ↗

GetAddresses returns the addresses of all instances within the replication set. Returned slice order is not guaranteed.

()

Source from the content-addressed store, hash-verified

535// GetAddresses returns the addresses of all instances within the replication set. Returned slice
536// order is not guaranteed.
537func (r ReplicationSet) GetAddresses() []string {
538 addrs := make([]string, 0, len(r.Instances))
539 for _, desc := range r.Instances {
540 addrs = append(addrs, desc.Addr)
541 }
542 return addrs
543}
544
545// GetAddressesWithout returns the addresses of all instances within the replication set while
546// excluding the specified address. Returned slice order is not guaranteed.

Calls

no outgoing calls