Documentation
¶
Overview ¶
Package backlinks maintains the index of backlinks and lets you update it and query it.
Index ¶
- func BacklinksCount(hyphaName string) int
- func BacklinksFor(hyphaName string) []string
- func IndexBacklinks()
- func Orphans() []string
- func RunBacklinksConveyor()
- func UpdateBacklinksAfterDelete(h hyphae.Hypha, oldText string)
- func UpdateBacklinksAfterEdit(h hyphae.Hypha, oldText string)
- func UpdateBacklinksAfterRename(h hyphae.Hypha, oldName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BacklinksCount ¶
BacklinksCount returns the amount of backlinks to the hypha. Pass canonical names.
func BacklinksFor ¶
func IndexBacklinks ¶
func IndexBacklinks()
IndexBacklinks traverses all text hyphae, extracts links from them and forms an initial index. Call it when indexing and reindexing hyphae.
func RunBacklinksConveyor ¶
func RunBacklinksConveyor()
RunBacklinksConveyor runs an index operation processing loop. Call it somewhere in main.
func UpdateBacklinksAfterDelete ¶
UpdateBacklinksAfterDelete is a deletion hook for backlinks index
func UpdateBacklinksAfterEdit ¶
UpdateBacklinksAfterEdit is a creation/editing hook for backlinks index
func UpdateBacklinksAfterRename ¶
UpdateBacklinksAfterRename is a renaming hook for backlinks index
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.