code: func (cr *ConsulResolver) Resolve(ctx context.Context) (string, connect.CertURI, error) {
  	switch cr.Type {
  	case ConsulResolverTypeService:
  		return cr.resolveService(ctx)
  	case ConsulResolverTypePreparedQuery:
  		return cr.resolveQuery(ctx)
  	default:
  		return "", nil, fmt.Errorf("unknown resolver type")
  	}
  }
docs: // Resolve performs service discovery against the local Consul agent and returns
  // the address and expected identity of a suitable service instance.