Skip to content

Commit

Permalink
remove duplicate types
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Dec 16, 2024
1 parent a8807b9 commit 8f33de7
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions backend/internal/server/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package server

import (
"KonferCA/SPUR/storage"
"time"

"github.com/jackc/pgx/v5/pgxpool"
"github.com/labstack/echo/v4"
Expand All @@ -13,24 +12,3 @@ type Server struct {
Echo *echo.Echo
Storage *storage.Storage
}

type DatabaseInfo struct {
Connected bool `json:"connected"`
LatencyMs float64 `json:"latency_ms"`
PostgresVersion string `json:"postgres_version,omitempty"`
Error string `json:"error,omitempty"`
}

type SystemInfo struct {
Version string `json:"version"`
GoVersion string `json:"go_version"`
NumGoRoutine int `json:"num_goroutines"`
MemoryUsage float64 `json:"memory_usage"`
}

type HealthReport struct {
Status string `json:"status"`
Timestamp time.Time `json:"timestamp"`
Database DatabaseInfo `json:"database"`
System SystemInfo `json:"system"`
}

0 comments on commit 8f33de7

Please sign in to comment.