var processStartedAt … func init() { … } const HTTPErrorOnError … const ContinueOnError … const PanicOnError … type HandlerOpts … func (ho *HandlerOpts) toPromhttpHandlerOpts() promhttp.HandlerOpts { … } // HandlerFor returns an uninstrumented http.Handler for the provided // Gatherer. The behavior of the Handler is defined by the provided // HandlerOpts. Thus, HandlerFor is useful to create http.Handlers for custom // Gatherers, with non-default HandlerOpts, and/or with custom (or no) // instrumentation. Use the InstrumentMetricHandler function to apply the same // kind of instrumentation as it is used by the Handler function. func HandlerFor(reg Gatherer, opts HandlerOpts) http.Handler { … } // HandlerWithReset return an http.Handler with Reset func HandlerWithReset(reg KubeRegistry, opts HandlerOpts) http.Handler { … }