MSP-437 drop ws proxy

This commit is contained in:
d1slike committed 2022-08-04 21:49:13 +03:00
1 parent fd40a83e83
commit 71100e8c7b
3 files changed
+6 -37

No files matched your search

-4
View File
@@ -15,7 +15,3 @@ locations:
- pathPrefix: /mdm
protocol: http
targetModule: mdm-api
- pathPrefix: /ws
protocol: websocket
skipAuth: true
targetModule: admin
+6 -13
View File
@@ -1,24 +1,17 @@
package conf
import (
"github.com/integration-system/isp-kit/bootstrap"
)
const (
HttpProtocol = "http"
GrpcProtocol = "grpc"
WebsocketProtocol = "websocket"
HttpProtocol = "http"
GrpcProtocol = "grpc"
)
type Local struct {
*bootstrap.LocalConfig
Locations []Location
}
type Location struct {
SkipAuth bool
SkipExistCheck bool
PathPrefix string `valid:"required"`
Protocol string `valid:"required,in(http|grpc|websocket)"`
TargetModule string `valid:"required"`
SkipAuth bool
PathPrefix string `valid:"required"`
Protocol string `valid:"required,in(http|grpc)"`
TargetModule string `valid:"required"`
}
-20
View File
@@ -1,20 +0,0 @@
package proxy
import (
"github.com/integration-system/isp-kit/lb"
"isp-gate-service/middleware"
)
type Websocket struct {
roundRobin *lb.RoundRobin
}
func NewWebsocket(hostManager *lb.RoundRobin) (Websocket, error) {
return Websocket{
roundRobin: hostManager,
}, nil
}
func (p Websocket) Handle(ctx middleware.Context) error {
return nil
}