exporter

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package exporter contains methods of extracting data from DB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	DB            storage.DBContext     `inject:""`
	JetStorage    storage.JetStorage    `inject:""`
	ObjectStorage storage.ObjectStorage `inject:""`
	PulseTracker  storage.PulseTracker  `inject:""`
	PulseStorage  core.PulseStorage     `inject:""`
	// contains filtered or unexported fields
}

Exporter provides methods for fetching data view from storage.

func NewExporter

func NewExporter(cfg configuration.Exporter) *Exporter

NewExporter creates new StorageExporter instance.

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, fromPulse core.PulseNumber, size int) (*core.StorageExportResult, error)

Export returns data view from storage.

Jump to

Keyboard shortcuts

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