MSP-1470 add ws proxy const
This commit is contained in:
1 parent
d298485722
commit
cbbc03acb9
1 file changed
+2
-1
+2
-1
@@ -3,6 +3,7 @@ package conf
|
||||
const (
|
||||
HttpProtocol = "http"
|
||||
GrpcProtocol = "grpc"
|
||||
WsProtocol = "ws"
|
||||
)
|
||||
|
||||
type Local struct {
|
||||
@@ -12,6 +13,6 @@ type Local struct {
|
||||
type Location struct {
|
||||
SkipAuth bool
|
||||
PathPrefix string `valid:"required"`
|
||||
Protocol string `valid:"required,in(http|grpc)"`
|
||||
Protocol string `valid:"required,in(http|grpc|ws)"`
|
||||
TargetModule string `valid:"required"`
|
||||
}
|
||||
Reference in new issue
Block a user