exporter

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportHistoryTree

func ImportHistoryTree(params TreeImportParams) (tree objecttree.ReadableObjectTree, err error)

Types

type DataConverter

type DataConverter interface {
	Unmarshall(decrypted []byte) (any, error)
	Marshall(model any) ([]byte, error)
}

type TreeExporter

type TreeExporter interface {
	ExportUnencrypted(tree objecttree.ReadableObjectTree) (err error)
}

func NewTreeExporter

func NewTreeExporter(params TreeExporterParams) TreeExporter

type TreeExporterParams

type TreeExporterParams struct {
	ListStorageExporter liststorage.Exporter
	TreeStorageExporter treestorage.Exporter
	DataConverter       DataConverter
}

type TreeImportParams

type TreeImportParams struct {
	ListStorage     liststorage.ListStorage
	TreeStorage     treestorage.TreeStorage
	BeforeId        string
	IncludeBeforeId bool
}

Jump to

Keyboard shortcuts

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