trans

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: AGPL-3.0 Imports: 13 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 {
	ExportMinimal(ctx context.Context, path string) error
}

Exporter wraps functionality for exporting entries from the database to a file.

func NewExporter

func NewExporter(db db.DB) Exporter

NewExporter returns a new Exporter that will use the given db.

type Importer

type Importer interface {
	Import(ctx context.Context, path string) error
}

Importer wraps functionality for importing entries from a file into the database.

func NewImporter

func NewImporter(db db.DB) Importer

NewImporter returns a new Importer interface that uses the given db.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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