nodehead

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "node.nodespace.nodehead"

Variables

View Source
var (
	ErrSpaceNotFound = errors.New("space not found")
)

Functions

This section is empty.

Types

type NodeHead

type NodeHead interface {
	SetHead(spaceId, head string) (part int, err error)
	GetHead(spaceId string) (head string, err error)
	DeleteHeads(spaceId string) error
	ReloadHeadFromStore(spaceId string) error
	LDiff(partId int) ldiff.Diff
	Ranges(ctx context.Context, part int, ranges []ldiff.Range, resBuf []ldiff.RangeResult) (results []ldiff.RangeResult, err error)
	app.ComponentRunnable
}

NodeHead keeps current state of all spaces by partitions

func New

func New() NodeHead

Directories

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

Jump to

Keyboard shortcuts

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