listbrokenlinks

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	UNRESOLVED = "unresolved" // [[target]] that no other note has as title or path, a heading the note lacks, a [label](path.md) an import left
	AMBIGUOUS  = "ambiguous"  // [[target]] that several other notes have
	MISSING    = "missing"    // a link to a note trashed or purged since
	FILE       = "file"       // an image or attachment /api/files/<id> the account does not keep: imported from another, purged
)

The kinds of broken link.

Variables

This section is empty.

Functions

func Process

func Process(ctx context.Context, db bun.IDB) *run

Process lists the links of the live notes that point to no note, or wait for a title several notes have, and the files they cite that the account lacks.

Types

type Link struct {
	NoteID    string `json:"note_id"`
	NoteTitle string `json:"note_title"`
	NotePath  string `json:"note_path"`
	Target    string `json:"target"`
	Kind      string `json:"kind" enums:"unresolved,ambiguous,missing,file"`
}

Link is a broken link of a live note: its target as written, the label of a link to a missing note, or the address of a missing file.

Jump to

Keyboard shortcuts

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