2024-01-22 17:22:41: merge [master:56d3e06e49d7a75f142424293788a4f3b6245430];
This commit is contained in:
1 parent
7014f56cbb
commit
2b91caece0
60 files changed
+3558
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package conf
|
||||
|
||||
const (
|
||||
HttpProtocol = "http"
|
||||
GrpcProtocol = "grpc"
|
||||
WsProtocol = "ws"
|
||||
)
|
||||
|
||||
type Local struct {
|
||||
Locations []Location
|
||||
}
|
||||
|
||||
type Location struct {
|
||||
WithPrefix bool
|
||||
SkipAuth bool
|
||||
PathPrefix string `validate:"required"`
|
||||
Protocol string `validate:"required,oneof=http grpc ws"`
|
||||
TargetModule string `validate:"required"`
|
||||
}
|
||||
Reference in new issue
Block a user