code: func (n NetworkMember) PreferredEndpoint() string {
  	if n.InternalEndpoint != "" {
  		return n.InternalEndpoint
  	}
  	return n.Endpoint
  }
docs: // PreferredEndpoint computes the endpoint to connect to,
  // while preferring internal endpoint over the standard
  // endpoint