MSP-1470 add ws proxy const

This commit is contained in:
d1slike committed 2023-03-27 11:41:32 +03:00
1 parent d298485722
commit cbbc03acb9
1 file changed
+2 -1
+2 -1
View File
@@ -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"`
}