You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: utilities.go
    path of file: ./repos/marketstore/frontend
    
    the code of the file until where you have to start completion: package frontend

import (
	"encoding/json"
	"net/http"
	"net/http/pprof"
	"sync/atomic"
	"time"

	"github.com/alpacahq/marketstore/v4/utils"
	"github.com/alpacahq/marketstore/v4/utils/log"
)

var Queryable uint32 // treated as bool

type HeartbeatMessage struct {
	Status  string `json:"status"`
	Version string `json:"version"`
	GitHash string `json:"git_hash"`
	Uptime  string `json:"uptime"`
}

func NewUtilityAPIHandlers(startTime time.Time) *UtilityAPIHandlers {
	return &UtilityAPIHandlers{startTime: startTime}
}

type UtilityAPIHandlers s
    
func (uah *UtilityAPIHandlers) Handle(url string) error {
	// heartbeat
	http.HandleFunc("/heartbeat", uah.heartbeat)

	// profiling
	http.HandleFunc("/pprof/", pprof.Index)
	http.HandleFunc("/pprof/cmdline", pprof.Cmdline)
	http.HandleFunc("/pprof/profile", pprof.Profile)
	http.HandleFunc("/pprof/symbol", pprof.Symbol)
	http.HandleFunc("/pprof/trace", pprof.Trace)
	http.Handle("/pprof/heap", pprof.Handler("heap"))
	http.Handle("/pprof/goroutine", pprof.Handler("goroutine"))
	http.Handle("/pprof/threadcreate", pprof.Handler("threadcreate"))
	http.Handle("/pprof/block", pprof.Handler("block"))

	return http.ListenAndServe(url, nil)
}