From cbbc03acb9fafa7965f40a1fd9d85f942639db49 Mon Sep 17 00:00:00 2001 From: d1slike Date: Wed, 22 Mar 2023 19:48:58 +0300 Subject: [PATCH] MSP-1470 add ws proxy const --- conf/local.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/local.go b/conf/local.go index 3ca105b..6dfedf1 100644 --- a/conf/local.go +++ b/conf/local.go @@ -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"` }