exporter

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 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(dataType string, decrypted []byte) (any, error)
	Marshall(model any) (data []byte, dataType string, err 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