mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-20 10:52:08 +00:00
13 lines
449 B
Go
13 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
|
|
}
|