MSP-437 drop ws proxy
This commit is contained in:
1 parent
fd40a83e83
commit
71100e8c7b
3 files changed
+6
-37
No files matched your search
@@ -15,7 +15,3 @@ locations:
|
||||
- pathPrefix: /mdm
|
||||
protocol: http
|
||||
targetModule: mdm-api
|
||||
- pathPrefix: /ws
|
||||
protocol: websocket
|
||||
skipAuth: true
|
||||
targetModule: admin
|
||||
+6
-13
@@ -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"`
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user