update gorilla/websocket to minio/websocket (#2587)

This commit is contained in:
Harshavardhana
2023-01-24 01:18:21 +05:30
committed by GitHub
parent 6930fd198c
commit be39cb5af3
14 changed files with 3747 additions and 437 deletions

View File

@@ -22,8 +22,8 @@ import (
"strings"
"time"
"github.com/gorilla/websocket"
"github.com/minio/madmin-go/v2"
"github.com/minio/websocket"
)
const logTimeFormat string = "15:04:05 MST 01/02/2006"

View File

@@ -26,8 +26,8 @@ import (
"strings"
"time"
"github.com/gorilla/websocket"
"github.com/minio/madmin-go/v2"
"github.com/minio/websocket"
)
// An alias of string to represent the health color code of an object

View File

@@ -27,8 +27,8 @@ import (
"github.com/klauspost/compress/gzip"
"github.com/gorilla/websocket"
"github.com/minio/madmin-go/v2"
"github.com/minio/websocket"
)
// startHealthInfo starts fetching mc.ServerHealthInfo and

View File

@@ -21,9 +21,9 @@ import (
"io/ioutil"
"net/http"
"github.com/gorilla/websocket"
"github.com/minio/console/models"
"github.com/minio/madmin-go/v2"
"github.com/minio/websocket"
)
var items []*models.StartProfilingItem

View File

@@ -25,8 +25,8 @@ import (
"time"
"github.com/dustin/go-humanize"
"github.com/gorilla/websocket"
"github.com/minio/madmin-go/v2"
"github.com/minio/websocket"
)
// getSpeedtesthOptionsFromReq gets duration, size & concurrent requests from a websocket

View File

@@ -23,8 +23,8 @@ import (
"strings"
"time"
"github.com/gorilla/websocket"
"github.com/minio/madmin-go/v2"
"github.com/minio/websocket"
)
// shortTraceMsg Short trace record

View File

@@ -24,8 +24,8 @@ import (
"regexp"
"strings"
"github.com/gorilla/websocket"
mc "github.com/minio/mc/cmd"
"github.com/minio/websocket"
)
type watchOptions struct {

View File

@@ -31,9 +31,9 @@ import (
"github.com/minio/console/pkg/utils"
"github.com/go-openapi/errors"
"github.com/gorilla/websocket"
"github.com/minio/console/models"
"github.com/minio/console/pkg/auth"
"github.com/minio/websocket"
)
var upgrader = websocket.Upgrader{

View File

@@ -21,7 +21,7 @@ import (
"errors"
"testing"
"github.com/gorilla/websocket"
"github.com/minio/websocket"
)
// Common mocks for WSConn interface