forked from mtusi2026/mtusi2026lab6
feat: add bounded observability and verified SLO incident alerts
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package postgres
|
||||
|
||||
import "context"
|
||||
|
||||
type reconcileObjects struct {
|
||||
exists bool
|
||||
}
|
||||
|
||||
// Exists supplies a deterministic object-side fault while exercising real SQL transitions.
|
||||
func (r *reconcileObjects) Exists(context.Context, string) (bool, error) {
|
||||
return r.exists, nil
|
||||
}
|
||||
|
||||
// Remove models an idempotent object removal for SQL cleanup tests.
|
||||
func (r *reconcileObjects) Remove(context.Context, string) error {
|
||||
r.exists = false
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user