Documentation
¶
Overview ¶
Package apichangewire assembles keeping API catalog specs current (#2469) from the platform: the refresher every check goes through, the scheduled loop, the upstream warnings recorder the outbound chain feeds, the admin routes, and the operator's private prefixes for a spec fetch. 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 API catalog store) does nothing.
func Build ¶
func Build(p *platform.Platform, notify *notifydelivery.Handle) *Feature
Build assembles the feature, and installs the operator's private prefixes as every spec fetch's default and, with a database, the upstream warnings recorder. It returns nil when there is no API catalog store.
func (*Feature) Mount ¶
func (f *Feature) Mount(mux *http.ServeMux, p *platform.Platform, 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.