nodehead

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 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)
	SetOldHead(spaceId, head string) (part int, err error)
	GetOldHead(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
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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