exporter

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(p Params) error

Export loads data and saves to writer does deletion if param indicates it

Types

type Exporter

type Exporter interface {
	All() ([]*mongodb.TextRecord, error)
	Delete(ID string) (int, error)
}

Exporter retrieves all data from DB

type Params added in v0.2.387

type Params struct {
	To       time.Time
	Delete   bool
	Out      io.Writer
	Exporter Exporter
}

Params - export tool params

Jump to

Keyboard shortcuts

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