kb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package kb defines the read contract every Waqwaq surface targets. Both the local *store.Store and the remote *kbclient.Client satisfy KnowledgeBase, so surfaces depend on the contract, never on a backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KnowledgeBase

type KnowledgeBase interface {
	List() ([]store.PageMeta, error)
	Read(slug string) (*store.Page, error)
	Search(query string) ([]store.SearchHit, error)
	GraphView() (*store.GraphView, error)
	Neighbors(slug string, depth int) ([]store.Neighbor, error)
	Path(from, to string) ([]store.PageMeta, error)
	Hubs(limit int) ([]store.Hub, error)
	Backlinks(slug string) ([]store.PageMeta, error)
	Health() (*store.Health, error)
	Tags() (map[string][]store.PageMeta, error)
	ResolveLink(target string) (string, bool)
}

Jump to

Keyboard shortcuts

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