apichangewire

package
v1.162.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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.

func (*Feature) Start

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

Start begins the scheduled checks.

func (*Feature) Stop

func (f *Feature) Stop()

Stop ends the scheduled checks.

Jump to

Keyboard shortcuts

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