exporters

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter added in v0.4.0

type Exporter struct {
	Name          string
	FactoryMethod func() exporters.Exporter
}

Exporter is an exporter component definition.

func New added in v0.4.0

func New(name string, factoryMethod func() exporters.Exporter) Exporter

New creates an Exporter.

type Registry

type Registry interface {
	Register(components ...Exporter)
	Create(name string) (exporters.Exporter, error)
}

Registry is the interface for callers to get registered exporter components

func NewRegistry

func NewRegistry() Registry

NewRegistry returns a new exporter registry.

Jump to

Keyboard shortcuts

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