backlinks

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package backlinks maintains the index of backlinks and lets you update it and query it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BacklinksCount

func BacklinksCount(hyphaName string) int

BacklinksCount returns the amount of backlinks to the hypha. Pass canonical names.

func IndexBacklinks()

IndexBacklinks traverses all text hyphae, extracts links from them and forms an initial index. Call it when indexing and reindexing hyphae.

func InitHandlers

func InitHandlers(rtr *mux.Router)

func RunBacklinksConveyor

func RunBacklinksConveyor()

RunBacklinksConveyor runs an index operation processing loop. Call it somewhere in main.

func UpdateBacklinksAfterDelete

func UpdateBacklinksAfterDelete(h hyphae.Hypha, oldText string)

UpdateBacklinksAfterDelete is a deletion hook for backlinks index

func UpdateBacklinksAfterEdit

func UpdateBacklinksAfterEdit(h hyphae.Hypha, oldText string)

UpdateBacklinksAfterEdit is a creation/editing hook for backlinks index

func UpdateBacklinksAfterRename

func UpdateBacklinksAfterRename(h hyphae.Hypha, oldName string)

UpdateBacklinksAfterRename is a renaming hook for backlinks index

Types

This section is empty.

Jump to

Keyboard shortcuts

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