Добавил наблюдаемость: OpenTelemetry, Prometheus, Loki, Tempo, Grafana

This commit is contained in:
gera
2026-11-19 23:10:55 +03:00
parent 470d9d6f1e
commit 4adc6c58c8
77 changed files with 8031 additions and 16 deletions
+33
View File
@@ -0,0 +1,33 @@
package main
import "time"
type User struct {
ID string
Username string
DisplayName string
PasswordHash string
CreatedAt time.Time
}
type Chat struct {
ID string
Title string
MemberIDs []string
CreatedAt time.Time
}
type Message struct {
ID string
ChatID string
SenderID string
Text string
CreatedAt time.Time
}
type Session struct {
TokenHash []byte
UserID string
CreatedAt time.Time
ExpiresAt time.Time
}