MCPcopy Create free account
hub / github.com/blues/note / DeleteNote

Method DeleteNote

lib/notebox.go:1450–1461  ·  view source on GitHub ↗

DeleteNote deletes an existing note from notefile

(ctx context.Context, ei *NotefileEventInfo, endpointID string, notefileID string, noteID string)

Source from the content-addressed store, hash-verified

1448
1449// DeleteNote deletes an existing note from notefile
1450func (box *Notebox) DeleteNote(ctx context.Context, ei *NotefileEventInfo, endpointID string, notefileID string, noteID string) (err error) {
1451 openfile, file, err := box.OpenNotefile(ctx, notefileID)
1452 if err != nil {
1453 return err
1454 }
1455
1456 err = file.DeleteNote(ctx, ei, endpointID, noteID)
1457
1458 openfile.Close(ctx)
1459
1460 return err
1461}
1462
1463// GetChanges retrieves the next batch of changes being tracked
1464func (box *Notebox) GetChanges(endpointID string, maxBatchSize int) (file *Notefile, numChanges int, totalChanges int, totalNotes int, since int64, until int64, err error) {

Callers 5

RequestMethod · 0.95
DeleteNotefileMethod · 0.45
hubNotefileDeleteNoteFunction · 0.45
testNoteboxFunction · 0.45
testNotefileFunction · 0.45

Calls 2

OpenNotefileMethod · 0.95
CloseMethod · 0.45

Tested by 2

testNoteboxFunction · 0.36
testNotefileFunction · 0.36