Files
isp-gate-service/conf/local.go
T
2023-12-21 14:35:08 +03:00

19 lines
329 B
Go

package conf
const (
HttpProtocol = "http"
GrpcProtocol = "grpc"
WsProtocol = "ws"
)
type Local struct {
Locations []Location
}
type Location struct {
SkipAuth bool
PathPrefix string `validate:"required"`
Protocol string `validate:"required,oneof=http grpc ws"`
TargetModule string `validate:"required"`
}