package main // Game represents a user-defined game with its own API configuration type Game struct { ID string `json:"id" gorm:"primaryKey"` Name string `json:"name"` Icon string `json:"icon"` URL string `json:"url"` Token string `json:"token"` } // ConnectionResult represents the result of a connection test type ConnectionResult struct { Success bool `json:"success"` Message string `json:"message"` Latency int64 `json:"latency"` Status int `json:"status"` } // XRayResult represents the raw JSON response of a test call type XRayResult struct { Success bool `json:"success"` Body string `json:"body"` Latency int64 `json:"latency"` Error string `json:"error"` }