diff --git a/monitor/state.go b/monitor/state.go index 48097e4..a31e803 100644 --- a/monitor/state.go +++ b/monitor/state.go @@ -24,6 +24,7 @@ type LogState struct { LastSuccess time.Time `json:"last_success"` } +// Methods are safe to call concurrently. type StateProvider interface { // Initialize the state. Called before any other method in this interface. // Idempotent: returns nil if the state is already initialized.