Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter interface {
Listen()
}
Exporter defines methods exported by a exporter
func NewExporter ¶
func NewExporter(cfg models.Config, opts ...OptionFunc) (Exporter, error)
NewExporter returns a new exporter from the provided config
type OptionFunc ¶
type OptionFunc func(*exporter)
OptionFunc defines option functions for exporter
func OptionWithCollector ¶
func OptionWithCollector(c collector.Collector) OptionFunc
OptionWithCollector assign a collector to the exporter
func OptionWithLogger ¶
func OptionWithLogger(log logr.Logger) OptionFunc
OptionWithLogger enable to inject a logger
func OptionWithSubscribers ¶
func OptionWithSubscribers(subscribers ...subscriber.Subscriber) OptionFunc
OptionWithSubscribers assign severial subscribers to the exporter
Click to show internal directories.
Click to hide internal directories.