apiknowledgewire

package
v1.172.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 34 Imported by: 0 modules, 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

Overview

Package apiknowledgewire assembles an API catalog's vendor knowledge (#2880) from the platform: the archive check and its schedule, which catalogs' pages and templates each caller sees (only those with a trusted connection their persona reaches), the vendor libraries a script loads, the pages api_discover lists, the templates manage_script offers, the admin routes and the portal's template routes. A package of its own because the composition root is at its size budget.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature struct {
	// contains filtered or unexported fields
}

Feature is the assembled feature. A nil *Feature (no database, no API catalogs or no knowledge pages) does nothing.

func For

func For(p *platform.Platform, notify *notifydelivery.Handle) *Feature

For is the platform's feature, built and installed on the first call. The server passes notify; the portal mount, which may come first, passes nil.

func (*Feature) Mount

func (f *Feature) Mount(mux *http.ServeMux, auth func(*platform.Platform) func(http.Handler) http.Handler, author func(*http.Request) string)

Mount registers the admin routes behind auth, when the admin API is on.

func (*Feature) MountPortal

func (f *Feature) MountPortal(mux *http.ServeMux, wrap func(http.Handler) http.Handler)

MountPortal registers the portal's template routes behind wrap.

func (*Feature) Start

func (f *Feature) Start(ctx context.Context)

Start begins the scheduled checks and the trust sweep.

func (*Feature) Stop

func (f *Feature) Stop()

Stop ends them.

Jump to

Keyboard shortcuts

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