objecttreebuilder

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "common.commonspace.objecttreebuilder"

Variables

View Source
var ErrSpaceClosed = errors.New("space is closed")

Functions

This section is empty.

Types

type BuildTreeOpts

type BuildTreeOpts struct {
	Listener    updatelistener.UpdateListener
	TreeBuilder objecttree.BuildObjectTreeFunc
}

type HistoryTreeOpts

type HistoryTreeOpts struct {
	BeforeId      string
	Include       bool
	BuildFullTree bool
}

type TreeBuilder

type TreeBuilder interface {
	BuildTree(ctx context.Context, id string, opts BuildTreeOpts) (t objecttree.ObjectTree, err error)
	BuildHistoryTree(ctx context.Context, id string, opts HistoryTreeOpts) (t objecttree.HistoryTree, err error)
	CreateTree(ctx context.Context, payload objecttree.ObjectTreeCreatePayload) (res treestorage.TreeStorageCreatePayload, err error)
	PutTree(ctx context.Context, payload treestorage.TreeStorageCreatePayload, listener updatelistener.UpdateListener) (t objecttree.ObjectTree, err error)
}

type TreeBuilderComponent

type TreeBuilderComponent interface {
	app.Component
	TreeBuilder
}

func New

Directories

Path Synopsis
Package mock_objecttreebuilder is a generated GoMock package.
Package mock_objecttreebuilder is a generated GoMock package.

Jump to

Keyboard shortcuts

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