Documentation ¶
Overview ¶
Code generated by gen-metrics-registrar. DO NOT EDIT.
Package metricsregistrar implements metrics registration on load.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a controller for the metrics registration service.
func New ¶
func New(cfg *config.MetricsRegistrarConfig, h *render.Renderer) *Controller
New creates a new controller.
func (*Controller) CreateMetrics ¶
func (c *Controller) CreateMetrics(ctx context.Context) error
CreateMetrics creates the upstream metrics in Stackdriver.
func (*Controller) HandleRoot ¶
func (c *Controller) HandleRoot() http.Handler
Click to show internal directories.
Click to hide internal directories.