26 lines
389 B
Go
Raw Normal View History

2025-08-09 15:08:26 +07:00
package app
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
)
type Server struct {
*gin.Engine
}
func generateServerID() string {
return uuid.New().String()
}
func (s Server) Listen(address string) error {
fmt.Printf("API server listening at: %s\n\n", address)
return s.Run(address)
}
func (s Server) StartScheduler() {
fmt.Printf("Scheduler started\n")
}