func (server *Server) HasCheckGroup(name string) bool {
	_, ok := server.checkGroups[name]
	return ok
}
HasCheckGroup returns true if the Check Group with the passed name has been
registered with the server.
package server
import (
	"net/http"
	"strings"
	"github.com/grafeas/voucher/v2/cmd/config"
	"github.com/grafeas/voucher/v2/metrics"
	log "github.com/sirupsen/logrus"
)
type Server struct {
	serverConfig *Config
	checkGroups  map[string][]string
	secrets      *config.Secrets
	metrics      metrics.Client
}
func NewServer(config *Config, secrets *config.Secrets, metrics metrics.Client) *Server {
	return &Server{
		serverConfig: config,
		secrets:      secrets,
		metrics:      metrics,
		checkGroups:  make(map[string][]string),
	}
}
func (server *Server) Serve() {
	router := NewRouter(server)
	log.Fatal(http.ListenAndServe(server.serverConfig.Address(), router))
}
func (server *Server) SetCheckGroup(name string, checkNames []string) {
	log.Infof("registering check group \"%s\": %s", name, strings.Join(checkNames, ", "))
	server.checkGroups[name] = checkNames
}