func New() *Exporter { … } type Exporter … func (e *Exporter) ProcessEvent(ctx context.Context, ev core.Event, lm label.Map) context.Context { … } func (e *Exporter) header(w http.ResponseWriter, name, description string, isGauge, isHistogram bool) { … } func (e *Exporter) row(w http.ResponseWriter, name string, group []label.Label, extra string, value interface{ … } func (e *Exporter) Serve(w http.ResponseWriter, r *http.Request) { … }