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"` }