trans

package
v0.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

GoToSocial Copyright (C) GoToSocial Authors admin@gotosocial.org SPDX-License-Identifier: AGPL-3.0-or-later

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

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