func (ScrapeProjects) Name() string {
	return "projects"
}
Name of the Scraper. Should be unique.
package collector
import (
	"encoding/json"
	"fmt"
	"github.com/pkg/errors"
	"github.com/prometheus/client_golang/prometheus"
	"strconv"
)
var _ Scraper = ScrapeProjects{}
const (
	projectsUrl = "/projects"
)
var (
	projectsRefInfo = prometheus.NewDesc(
		prometheus.BuildFQName(namespace, "ref_work", "projects"),
		"test the projects api ref work status(0 for error, 1 for success).",
		[]string{"ref", "method"}, nil,
	)
	reposRefInfo = prometheus.NewDesc(
		prometheus.BuildFQName(namespace, "ref_work", "repos"),
		"test the repos api ref work status(0 for error, 1 for success).",
		[]string{"ref", "method"}, nil,
	)
)
type projectsJson struct {
	ProjectID int `json:"project_id"`
}
type metadataJson struct {
	Public string `json:"public"`
}
type ScrapeProjects struct{}