package vm

import (
	"net/http"
	"text/template"

	"github.com/pingcap-inc/clinic/pkg/ngm/topsql/api"
)

type VMQuery struct {
	client  *http.Client
	addrTmp *template.Template
}

var _ api.Query = (*VMQuery)(nil)

func NewVmQuery(client *http.Client, _env string) (*VMQuery, error) {
	//var addrTmp *template.Template
	//switch env {
	//case "dev":
	//	addrTmp = devAddrTmp
	//case "staging":
	//	addrTmp = stagingAddrTmp
	//case "prod":
	//	addrTmp = prodAddrTmp
	//default:
	//	return nil, errors.New(fmt.Sprintf("unknown env: %s", env))
	//}

	return &VMQuery{
		client:  client,
		addrTmp: addrTmp,
	}, nil
}
