Backend: API handlers, WebSocket manager, K8s client, CRDT, auth
This commit is contained in:
20
server/internal/ws/logs.go
Normal file
20
server/internal/ws/logs.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package ws
|
||||
|
||||
import (
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
func LogsHandler(conn *websocket.Conn, r *http.Request) error {
|
||||
// Extract pod and namespace from query params
|
||||
pod := r.URL.Query().Get("pod")
|
||||
namespace := r.URL.Query().Get("ns")
|
||||
|
||||
if pod == "" || namespace == "" {
|
||||
return websocket.CloseBadRequest
|
||||
}
|
||||
|
||||
// TODO: Implement logs streaming
|
||||
// This will connect to k8s logs API and stream logs via WebSocket
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user