appdbwire

package
v1.169.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 19 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 appdbwire assembles the operation of application databases from the platform (#2406, #2409, #2410, #2427): the health and drift loop and its settings, the alert engine posting to notification channels, the gauges, the admin routes, and what manage_schema's status and describe add to their answers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(toolkits []registry.Toolkit, store appdbdrift.Migrations, svc *appdbwatch.Service)

Install gives each postgres toolkit what manage_schema's status and describe add (#2406, #2409): status reports the schema's drift, and describe the findings a build can act on (an index never scanned, indexes that index the same thing, a table whose dead tuples pass the dead tuple threshold). Neither carries statement text.

func Mount

func Mount(ctx context.Context, mux *http.ServeMux, p *platform.Platform, notify *notifydelivery.Handle, admin Admin)

Mount assembles everything, mounts the admin routes when the admin API is on, and starts the loop, which runs until ctx ends. Without a database it does nothing.

Types

type Admin

type Admin struct {
	Auth  func() func(http.Handler) http.Handler
	Actor func(*http.Request) string
}

Admin is the admin API the routes mount behind: its authentication, and who made a request.

Jump to

Keyboard shortcuts

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