feat: add bounded observability and verified SLO incident alerts

This commit is contained in:
Vladislav Agapov
2026-10-29 18:01:11 +03:00
parent 470d9d6f1e
commit 6c7601802d
325 changed files with 24988 additions and 44 deletions
+17
View File
@@ -0,0 +1,17 @@
package service
import (
"context"
"github.com/google/uuid"
"gitea.privcloud.tech/vlad_marlo/mtusi2026lab6/internal/model/dto"
)
// ProfileCache stores immutable public account profiles; misses fall back to PostgreSQL.
type ProfileCache interface {
// GetProfile returns a cached profile or a miss, including on backend failure.
GetProfile(context.Context, uuid.UUID) (dto.UserDTO, bool)
// PutProfile stores a bounded-lifetime profile on a best-effort basis.
PutProfile(context.Context, dto.UserDTO)
}