appdbwire

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: 19 Imported by: 0

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