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
Click to show internal directories.
Click to hide internal directories.