fix: get all spider issue

This commit is contained in:
Marvin Zhang
2024-06-26 17:31:31 +08:00
parent 1ad3e0619d
commit 11a0134fd1
32 changed files with 979 additions and 303 deletions

View File

@@ -68,7 +68,7 @@ func GetSpiderList(c *gin.Context) {
// get all list
all := MustGetFilterAll(c)
if all {
NewControllerV2[models.ProjectV2]().getAll(c)
NewControllerV2[models.SpiderV2]().getAll(c)
return
}

View File

@@ -0,0 +1,12 @@
package server
import (
"github.com/crawlab-team/crawlab/grpc"
"sync"
)
type MetricsServerV2 struct {
grpc.UnimplementedMetricsServiceV2Server
mu *sync.Mutex
streams map[string]*grpc.MetricsServiceV2_ConnectServer
}