exporter

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL