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 ¶
func Build(p *platform.Platform, notify *notifydelivery.Handle) *storagecap.Service
Build returns the storage service, or nil without a database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.