mirror of https://github.com/status-im/consul.git
17 lines
403 B
Go
17 lines
403 B
Go
// +build !ent
|
|
|
|
package command
|
|
|
|
import consulapi "github.com/hashicorp/consul/api"
|
|
|
|
// getSegmentMembers returns an empty list since network segments are not
|
|
// supported in OSS Consul.
|
|
func getSegmentMembers(client *consulapi.Client) ([]*consulapi.AgentMember, error) {
|
|
members, err := client.Agent().MembersOpts(consulapi.MembersOpts{})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return members, nil
|
|
}
|