forked from mtusi2026/mtusi2026lab6
feat: add bounded observability and verified SLO incident alerts
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user