project structure refactoring

This commit is contained in:
Artem
2024-11-05 23:47:00 +01:00
parent 1f5a56cc5d
commit c228921237
16 changed files with 51 additions and 47 deletions

View File

@@ -6,11 +6,11 @@ import (
"os/exec"
"path/filepath"
"rkkvm/config"
"rkkvm/http/hw/hid"
"rkkvm/http/hw/stream"
"rkkvm/hid"
"rkkvm/http/middleware"
"rkkvm/http/reqrsp"
"rkkvm/http/ws"
"rkkvm/stream"
"strings"
"github.com/gin-gonic/gin"

View File

@@ -2,7 +2,7 @@ package route
import (
"net/http"
"rkkvm/http/hw/stream"
"rkkvm/external/ffmpeg"
"rkkvm/http/middleware"
"rkkvm/http/reqrsp"
"time"
@@ -56,7 +56,7 @@ func SetScreen(c *gin.Context) {
return
}
ffmpeg := stream.GetFFmpeg()
ffmpeg := ffmpeg.GetFFmpeg()
switch req.Type {
case "fps":
ffmpeg.SetFPS(req.Value)