storagewire

package
v1.147.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package storagewire assembles storage capacity (#2148) from the platform: the settings, the receivers' spool states, the client the SeaweedFS cluster is read through, the alert engine posting to notification channels, and the admin routes.

Index

Constants

View Source
const EnvInterval = "MCP_PLATFORM_STORAGE_HISTORY_INTERVAL"

EnvInterval overrides how often the stores are sampled and the alerts evaluated (default 15m), as a Go duration: a local stack proves an alert in seconds rather than a quarter hour.

Variables

This section is empty.

Functions

func AlertSender

func AlertSender(notify *notifydelivery.Handle) levelalert.Sender

AlertSender is the notification substrate's alert sender as the alert engine takes it: nil, never a typed nil, when notifications are off.

func Build

Build returns the storage service, or nil without a database.

func Mount

func Mount(mux *http.ServeMux, p *platform.Platform, svc *storagecap.Service, adminAuth func() func(http.Handler) http.Handler)

Mount registers the storage routes behind the admin API's authentication when the admin API is on.

Types

This section is empty.

Jump to

Keyboard shortcuts

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