data

package
v0.0.0-...-96b211d Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(connectionString string, transaction bool) (*Connection, error)

type LockReleaseHandler

type LockReleaseHandler func()

type Metadata

type Metadata interface {
	Get(folderPaths []string) ([]*common.Folder, error)
	ChildrenTree(folderPath string, includeItself bool, reverseSort bool) ([]*common.Folder, error)
	ParentTree(folderPath string, includeItself bool, reverseSort bool) ([]*common.Folder, error)

	SaveBlock(folderPaths []string, saveHandler func(folders map[string]*common.Folder) (bool, error)) error
	SaveChain(folderPath string, saveHandler func(folder *common.Folder) (bool, error)) error
}

func NewMetadata

func NewMetadata(mutex mutex.LockingCenter, conn *Connection, database string) (Metadata, error)

Jump to

Keyboard shortcuts

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