mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-07 00:37:36 +00:00
12 lines
449 B
Go
12 lines
449 B
Go
package models
|
|
|
|
// SnapshotProvider provides a current state snapshot.
|
|
//
|
|
// This is the canonical, shared interface for any component that provides
|
|
// infrastructure state snapshots. All packages should depend on this single
|
|
// definition rather than declaring their own identical interface.
|
|
//
|
|
// The monitoring.Monitor type satisfies this interface via its ReadSnapshot() method.
|
|
type SnapshotProvider interface {
|
|
ReadSnapshot() StateSnapshot
|
|
}
|