nodestorage

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

Variables

View Source
var ErrLocked = errors.New("space storage locked")

Functions

This section is empty.

Types

type Config

type Config struct {
	Path string `yaml:"path"`
}

type NodeStorage

type NodeStorage interface {
	spacestorage.SpaceStorageProvider
	SpaceStorage(spaceId string) (spacestorage.SpaceStorage, error)
	TryLockAndDo(spaceId string, do func() error) (err error)
	AllSpaceIds() (ids []string, err error)
	OnWriteHash(onWrite func(ctx context.Context, spaceId, hash string))
	StoreDir(spaceId string) (path string)
}

func New

func New() NodeStorage

Directories

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

Jump to

Keyboard shortcuts

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