fix: trim imports per file — no unused imports in split files
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

This commit is contained in:
2026-04-26 14:58:53 -04:00
parent 2fa6f0df62
commit e598150d90
7 changed files with 16 additions and 55 deletions
-8
View File
@@ -4,19 +4,11 @@ import (
"database/sql"
"fmt"
"net/http"
"os"
"strings"
"time"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"golang.org/x/crypto/bcrypt"
"gophergate/internal/db"
"gophergate/internal/models"
"gophergate/internal/utils"
"log/slog"
"github.com/shirou/gopsutil/v3/cpu"
)
type UsagePeriodFilter struct {
-7
View File
@@ -4,19 +4,12 @@ import (
"database/sql"
"fmt"
"net/http"
"os"
"strings"
"time"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"golang.org/x/crypto/bcrypt"
"gophergate/internal/db"
"gophergate/internal/models"
"gophergate/internal/utils"
"log/slog"
"github.com/shirou/gopsutil/v3/cpu"
)
func (s *Server) handleGetClients(c *gin.Context) {
+4 -12
View File
@@ -4,23 +4,15 @@ import (
"database/sql"
"fmt"
"net/http"
"os"
"strings"
"time"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"golang.org/x/crypto/bcrypt"
"gophergate/internal/db"
"gophergate/internal/models"
"gophergate/internal/utils"
"log/slog"
"github.com/shirou/gopsutil/v3/cpu"
"github.com/shirou/gopsutil/v3/disk"
"github.com/shirou/gopsutil/v3/load"
"github.com/shirou/gopsutil/v3/mem"
"github.com/shirou/gopsutil/v3/process"
"github.com/gin-gonic/gin"
"golang.org/x/crypto/bcrypt"
"gophergate/internal/db"
"gophergate/internal/utils"
)
type ApiResponse struct {
+2 -6
View File
@@ -1,22 +1,18 @@
package server
import (
"database/sql"
"fmt"
"net/http"
"os"
"strings"
"time"
"log/slog"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"golang.org/x/crypto/bcrypt"
"gophergate/internal/db"
"gophergate/internal/models"
"gophergate/internal/utils"
"log/slog"
"github.com/shirou/gopsutil/v3/cpu"
)
func (s *Server) handleGetModels(c *gin.Context) {
+2 -7
View File
@@ -1,22 +1,17 @@
package server
import (
"database/sql"
"fmt"
"net/http"
"os"
"strings"
"time"
"log/slog"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"golang.org/x/crypto/bcrypt"
"gophergate/internal/db"
"gophergate/internal/models"
"gophergate/internal/utils"
"log/slog"
"github.com/shirou/gopsutil/v3/cpu"
)
func (s *Server) handleGetProviders(c *gin.Context) {
+8 -7
View File
@@ -1,22 +1,23 @@
package server
import (
"database/sql"
"fmt"
"net/http"
"os"
"strings"
"time"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"golang.org/x/crypto/bcrypt"
"gophergate/internal/db"
"gophergate/internal/models"
"gophergate/internal/utils"
"log/slog"
"github.com/gin-gonic/gin"
"gophergate/internal/db"
"gophergate/internal/utils"
"github.com/shirou/gopsutil/v3/cpu"
"github.com/shirou/gopsutil/v3/disk"
"github.com/shirou/gopsutil/v3/load"
"github.com/shirou/gopsutil/v3/mem"
"github.com/shirou/gopsutil/v3/process"
)
func (s *Server) handleSystemHealth(c *gin.Context) {
-8
View File
@@ -1,22 +1,14 @@
package server
import (
"database/sql"
"fmt"
"net/http"
"os"
"strings"
"time"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"golang.org/x/crypto/bcrypt"
"gophergate/internal/db"
"gophergate/internal/models"
"gophergate/internal/utils"
"log/slog"
"github.com/shirou/gopsutil/v3/cpu"
)
func (s *Server) handleGetUsers(c *gin.Context) {