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 ¶
MountPortal registers the portal's template routes behind wrap.