func NewHttpInterface(agent *sdk.Agent, port int) *HttpInterface {
	h := &HttpInterface{agent: agent, port: port}
	h.mux.HandleFunc("/report", h.handleAdd)
	h.mux.HandleFunc("/status", h.handleStatus)
	return h
}
NewHttpInterface creates a new agent interface that listens on the given port. The interface
must be started with a call to ListenAndServe().
package http
import (
	"context"
	"errors"
	"fmt"
	"io/ioutil"
	"net/http"
	"github.com/GoogleCloudPlatform/ubbagent/sdk"
)
type HttpInterface struct {
	agent *sdk.Agent
	port  int
	mux   http.ServeMux
	srv   *http.Server
}